#F2D251#F2D251

#F2D251 is a very light, vivid yellow. Relative luminance 0.656; OKLCH L 86.8% C 0.148 H 95.1°. Best body text is #000000 at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#F2D251
RGBrgb(242, 210, 81)
HSLhsl(48, 86%, 63%)
HSVhsv(48, 67%, 95%)
CMYKcmyk(0%, 13.2%, 66.5%, 5.1%)
CIE-LABlab(84.78, -2.73, 65.60)
CIE-LCHlch(84.78, 65.66, 92.38°)
OKLaboklab(86.79% -0.0132 0.1479)
OKLCHoklch(86.79% 0.148 95.1)
XYZxyz(61.1527, 65.5677, 17.2177)
Luminance0.6556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D251 #5171F2
analogous
#F28251 #F2D251 #C1F251
triadic
#F2D251 #51F2D2 #D251F2
tetradic
#F2D251 #51F282 #5171F2 #F251C1
square
#F2D251 #51F282 #5171F2 #F251C1
split-complementary
#F2D251 #51C1F2 #8251F2
monochromatic
#BB980E #EEC318 #F2D251 #F6E18A #FBEFC3

Accessibility & contrast

On white

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

On black

14.11
#F2D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D251
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D251#FFFFFF#000000##000000
##F2D2511.001.4914.1114.11
#FFFFFF1.491.0021.0021.00
#00000014.1121.001.001.00
##00000014.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CE41
Deuteranopia (green-blind)
#EFD858
Tritanopia (blue-blind)
#FFC2B7
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d251;
/* rgb */ color: rgb(242, 210, 81);
/* oklch */ color: oklch(86.8% 0.148 95.1);
Tailwind
colors: {
  custom: {
    50: '#fadf88',
    500: '#f2d251',
    950: '#000000',
  },
}
SCSS
$custom: #f2d251;
$custom-light: #fadf88;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d251",
  "rgb": {
    "r": 242,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 48.075,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.86789,
    "c": 0.14844,
    "h": 95.1
  },
  "luminance": 0.65565
}

Semantic roles & 50–950 ramp

primary
#F2D251
secondary
#2E4AB9
accent
#2FE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D251

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

Preview Lab → · Contrast checker → · Palette generator →

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