#F2D258#F2D258

#F2D258 is a very light, vivid yellow. Relative luminance 0.657; OKLCH L 86.9% C 0.143 H 94.5°. Best body text is #000000 at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#F2D258
RGBrgb(242, 210, 88)
HSLhsl(48, 86%, 65%)
HSVhsv(48, 64%, 95%)
CMYKcmyk(0%, 13.2%, 63.6%, 5.1%)
CIE-LABlab(84.83, -2.32, 62.73)
CIE-LCHlch(84.83, 62.78, 92.12°)
OKLaboklab(86.85% -0.0112 0.1429)
OKLCHoklch(86.85% 0.143 94.5)
XYZxyz(61.4289, 65.6782, 18.6721)
Luminance0.6567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D258 #5878F2
analogous
#F28558 #F2D258 #C5F258
triadic
#F2D258 #58F2D2 #D258F2
tetradic
#F2D258 #58F285 #5878F2 #F258C5
square
#F2D258 #58F285 #5878F2 #F258C5
split-complementary
#F2D258 #58C5F2 #8558F2
monochromatic
#C19C0F #EEC31F #F2D258 #F6E191 #FBF1CA

Accessibility & contrast

On white

1.49
#F2D258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.14
#F2D258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D258
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D258#FFFFFF#000000##000000
##F2D2581.001.4914.1414.14
#FFFFFF1.491.0021.0021.00
#00000014.1421.001.001.00
##00000014.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE4A
Deuteranopia (green-blind)
#EED85E
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d258;
/* rgb */ color: rgb(242, 210, 88);
/* oklch */ color: oklch(86.9% 0.143 94.5);
Tailwind
colors: {
  custom: {
    50: '#fadf8c',
    500: '#f2d258',
    950: '#000000',
  },
}
SCSS
$custom: #f2d258;
$custom-light: #fadf8c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d258",
  "rgb": {
    "r": 242,
    "g": 210,
    "b": 88
  },
  "hsl": {
    "h": 47.532,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.86852,
    "c": 0.1433,
    "h": 94.5
  },
  "luminance": 0.65675
}

Semantic roles & 50–950 ramp

primary
#F2D258
secondary
#304DBE
accent
#32E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D258

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

Preview Lab → · Contrast checker → · Palette generator →

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