#F2D158#F2D158

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

Color values

HEX#F2D158
RGBrgb(242, 209, 88)
HSLhsl(47, 86%, 65%)
HSVhsv(47, 64%, 95%)
CMYKcmyk(0%, 13.6%, 63.6%, 5.1%)
CIE-LABlab(84.58, -1.81, 62.46)
CIE-LCHlch(84.58, 62.49, 91.66°)
OKLaboklab(86.65% -0.0097 0.1423)
OKLCHoklch(86.65% 0.143 93.9)
XYZxyz(61.1827, 65.1859, 18.5901)
Luminance0.6518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D158 #5879F2
analogous
#F28458 #F2D158 #C6F258
triadic
#F2D158 #58F2D1 #D158F2
tetradic
#F2D158 #58F284 #5879F2 #F258C6
square
#F2D158 #58F284 #5879F2 #F258C6
split-complementary
#F2D158 #58C6F2 #8458F2
monochromatic
#C19B0F #EEC11F #F2D158 #F6E191 #FBF0CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D158#FFFFFF#000000##000000
##F2D1581.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)
#E5CD4A
Deuteranopia (green-blind)
#EED75E
Tritanopia (blue-blind)
#FFC2B7
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f2d158;
/* rgb */ color: rgb(242, 209, 88);
/* oklch */ color: oklch(86.7% 0.143 93.9);
Tailwind
colors: {
  custom: {
    50: '#fade8c',
    500: '#f2d158',
    950: '#000000',
  },
}
SCSS
$custom: #f2d158;
$custom-light: #fade8c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d158",
  "rgb": {
    "r": 242,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 47.143,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.86652,
    "c": 0.14261,
    "h": 93.9
  },
  "luminance": 0.65183
}

Semantic roles & 50–950 ramp

primary
#F2D158
secondary
#304EBE
accent
#33E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D158

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

Preview Lab → · Contrast checker → · Palette generator →

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