#F2D159#F2D159

#F2D159 is a very light, vivid yellow. Relative luminance 0.652; OKLCH L 86.7% C 0.142 H 93.8°. Best body text is #000000 at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#F2D159
RGBrgb(242, 209, 89)
HSLhsl(47, 85%, 65%)
HSVhsv(47, 63%, 95%)
CMYKcmyk(0%, 13.6%, 63.2%, 5.1%)
CIE-LABlab(84.59, -1.75, 62.04)
CIE-LCHlch(84.59, 62.06, 91.62°)
OKLaboklab(86.66% -0.0094 0.1415)
OKLCHoklch(86.66% 0.142 93.8)
XYZxyz(61.2244, 65.2026, 18.8098)
Luminance0.6520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D159 #597AF2
analogous
#F28559 #F2D159 #C6F259
triadic
#F2D159 #59F2D1 #D159F2
tetradic
#F2D159 #59F285 #597AF2 #F259C6
square
#F2D159 #59F285 #597AF2 #F259C6
split-complementary
#F2D159 #59C6F2 #8559F2
monochromatic
#C19B0F #EEC120 #F2D159 #F6E192 #FBF0CB

Accessibility & contrast

On white

1.50
#F2D159 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.04
#F2D159 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D159
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D159#FFFFFF#000000##000000
##F2D1591.001.5014.0414.04
#FFFFFF1.501.0021.0021.00
#00000014.0421.001.001.00
##00000014.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CD4B
Deuteranopia (green-blind)
#EED75F
Tritanopia (blue-blind)
#FFC2B7
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f2d159;
/* rgb */ color: rgb(242, 209, 89);
/* oklch */ color: oklch(86.7% 0.142 93.8);
Tailwind
colors: {
  custom: {
    50: '#fade8d',
    500: '#f2d159',
    950: '#000000',
  },
}
SCSS
$custom: #f2d159;
$custom-light: #fade8d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d159",
  "rgb": {
    "r": 242,
    "g": 209,
    "b": 89
  },
  "hsl": {
    "h": 47.059,
    "s": 85.475,
    "l": 64.902
  },
  "oklch": {
    "l": 0.86661,
    "c": 0.14184,
    "h": 93.8
  },
  "luminance": 0.65199
}

Semantic roles & 50–950 ramp

primary
#F2D159
secondary
#304FBF
accent
#34E204
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D159

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F2D159 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva