#F2D987

Closest named color: Light Gold (#F3DE8A). oklch(88.8% 0.105 93), rgb(242, 217, 135).

Aa

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

About this color

#F2D987 is a light, moderately saturated yellow. In OKLCH its lightness is 89%, its chroma 0.105 and its hue 93°. Its hue sits on the warm side of the wheel. The nearest named color is Light Gold (#F3DE8A), ΔE 0.012 away. Black text reads best on it, at 15.05:1.

Hue familyYellows
Lightnesslight (89%)
Chromamoderately saturated (0.105)
Temperaturewarm
Nearest nameLight Gold (#F3DE8A)
Black text15.05:1
White text1.39:1

Values

HEX#F2D987
RGBrgb(242, 217, 135)
HSLhsl(46, 80%, 74%)
OKLCHoklch(88.8% 0.105 93)

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 #F2D987 1.39:1 Fails Lc -21.8 Dividers and decoration only
Black text on #F2D987 15.05:1 AAA Lc 84.6 Fine for body text
#F2D987 text on white 1.39:1 Fails Lc 19.1 Dividers and decoration only
#F2D987 text on black 15.05:1 AAA Lc -84.4 Fine for body text

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 200.

  1. Step 50

    50

    #F9F5E8

    oklch(97% 0.018 92.7)

  2. Step 100

    100

    #F3EACD

    oklch(93.7% 0.039 92.7)

  3. Step 200

    200 (this color)

    #F2D987

    oklch(88.8% 0.105 93)

  4. Step 300

    300

    #DFBE4C

    oklch(80.9% 0.136 92.9)

  5. Step 400

    400

    #C09D00

    oklch(70.7% 0.145 92.8)

  6. Step 500

    500

    #A48600

    oklch(63% 0.129 93)

  7. Step 600

    600

    #8A7100

    oklch(55.6% 0.114 93.5)

  8. Step 700

    700

    #745E00

    oklch(49% 0.1 92.9)

  9. Step 800

    800

    #5F4D00

    oklch(42.6% 0.087 93.4)

  10. Step 900

    900

    #504000

    oklch(37.8% 0.077 92.8)

  11. Step 950

    950

    #302500

    oklch(26.9% 0.055 91.9)

Export this scale for Tailwind in the Tailwind colors tool

#F2D987 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)#E9D6810.017
Deuteranopia (no green cones)#F0DE8A0.012
Tritanopia (no blue cones)#FFCDC50.096
Achromatopsia (no color)#DADADA0.105

Harmonies

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

Complementary

The opposite hue (180°).

  • #F2D987

    #F2D987

    oklch(88.8% 0.105 93)

  • #CED9FF

    #CED9FF

    oklch(88.9% 0.054 272.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #F2D987

    #F2D987

    oklch(88.8% 0.105 93)

  • #FFD0A6

    #FFD0A6

    oklch(88.8% 0.076 63.4)

  • #CDE697

    #CDE697

    oklch(88.8% 0.106 122.8)

Open the analogous palette in the generator

Split complementary

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

  • #F2D987

    #F2D987

    oklch(88.8% 0.105 93)

  • #B9E0FF

    #B9E0FF

    oklch(88.9% 0.059 242.3)

  • #E3D0FF

    #E3D0FF

    oklch(88.8% 0.067 303.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #F2D987

    #F2D987

    oklch(88.8% 0.105 93)

  • #8DEBFF

    #8DEBFF

    oklch(88.9% 0.093 212.8)

  • #FFC5F4

    #FFC5F4

    oklch(88.9% 0.089 333)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #F2D987

    #F2D987

    oklch(88.8% 0.105 93)

  • #82F1E1

    #82F1E1

    oklch(88.8% 0.105 183.5)

  • #CED9FF

    #CED9FF

    oklch(88.9% 0.054 272.6)

  • #FFCAD6

    #FFCAD6

    oklch(88.9% 0.062 3.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #F2D987 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.