#BFA227

Closest named color: Ocre (#C69C04). oklch(71.8% 0.136 94.8), rgb(191, 162, 39).

Aa

Black text reads best on this color (8.41:1).

About this color

#BFA227 is a medium-light, moderately saturated yellow. In OKLCH its lightness is 72%, its chroma 0.136 and its hue 95°. Its hue sits on the warm side of the wheel. The nearest named color is Ocre (#C69C04), ΔE 0.017 away. Black text reads best on it, at 8.41:1.

Hue familyYellows
Lightnessmedium-light (72%)
Chromamoderately saturated (0.136)
Temperaturewarm
Nearest nameOcre (#C69C04)
Black text8.41:1
White text2.49:1

Values

HEX#BFA227
RGBrgb(191, 162, 39)
HSLhsl(49, 66%, 45%)
OKLCHoklch(71.8% 0.136 94.8)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #BFA227 2.49:1 Fails Lc -53.9 Large or bold text, headings
Black text on #BFA227 8.41:1 AAA Lc 55.1 Large or bold text, headings
#BFA227 text on white 2.49:1 Fails Lc 48.9 Large or bold text, headings
#BFA227 text on black 8.41:1 AAA Lc -53.1 Large or bold text, headings

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 400.

  1. Step 50

    50

    #F8F5ED

    oklch(97% 0.011 89.7)

  2. Step 100

    100

    #EFEAD8

    oklch(93.6% 0.024 94.1)

  3. Step 200

    200

    #E3D9B7

    oklch(88.5% 0.046 93.5)

  4. Step 300

    300

    #D2C080

    oklch(80.8% 0.085 94.3)

  5. Step 400

    400 (this color)

    #BFA227

    oklch(71.8% 0.136 94.8)

  6. Step 500

    500

    #A28700

    oklch(63% 0.129 94.8)

  7. Step 600

    600

    #897200

    oklch(55.8% 0.114 94.9)

  8. Step 700

    700

    #735F00

    oklch(49.1% 0.101 94.6)

  9. Step 800

    800

    #5E4E00

    oklch(42.8% 0.088 95.4)

  10. Step 900

    900

    #4F4000

    oklch(37.6% 0.077 93.9)

  11. Step 950

    950

    #2F2600

    oklch(27.1% 0.056 95.5)

Export this scale for Tailwind in the Tailwind colors tool

#BFA227 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#B49F060.023
Deuteranopia (no green cones)#BBA8300.015
Tritanopia (no blue cones)#CF958B0.124
Achromatopsia (no color)#A4A4A40.136

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #BFA227

    #BFA227

    oklch(71.8% 0.136 94.8)

  • #8B9CF8

    #8B9CF8

    oklch(71.8% 0.135 274.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #BFA227

    #BFA227

    oklch(71.8% 0.136 94.8)

  • #DE903A

    #DE903A

    oklch(71.8% 0.136 64.7)

  • #91B24B

    #91B24B

    oklch(71.7% 0.136 124.6)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #BFA227

    #BFA227

    oklch(71.8% 0.136 94.8)

  • #4FACF3

    #4FACF3

    oklch(71.9% 0.136 244.5)

  • #B88DE8

    #B88DE8

    oklch(71.9% 0.136 305)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #BFA227

    #BFA227

    oklch(71.8% 0.136 94.8)

  • #00B7D5

    #00B7D5

    oklch(71.7% 0.127 215)

  • #D781C6

    #D781C6

    oklch(71.7% 0.137 334.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #BFA227

    #BFA227

    oklch(71.8% 0.136 94.8)

  • #00BDAE

    #00BDAE

    oklch(71.8% 0.127 184.9)

  • #8B9CF8

    #8B9CF8

    oklch(71.8% 0.135 274.6)

  • #EA7D99

    #EA7D99

    oklch(71.9% 0.137 4.7)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #BFA227, closest first.

No curated palette has a color within ΔE 0.04 of #BFA227.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #BFA227 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.