#F2D951#F2D951

#F2D951 is a very light, vivid yellow. Relative luminance 0.691; OKLCH L 88.2% C 0.154 H 98.7°. Best body text is #000000 at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#F2D951
RGBrgb(242, 217, 81)
HSLhsl(51, 86%, 63%)
HSVhsv(51, 67%, 95%)
CMYKcmyk(0%, 10.3%, 66.5%, 5.1%)
CIE-LABlab(86.55, -6.28, 67.45)
CIE-LCHlch(86.55, 67.74, 95.32°)
OKLaboklab(88.2% -0.0233 0.1518)
OKLCHoklch(88.2% 0.154 98.7)
XYZxyz(62.9188, 69.1000, 17.8065)
Luminance0.6910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D951 #516AF2
analogous
#F28851 #F2D951 #BAF251
triadic
#F2D951 #51F2D9 #D951F2
tetradic
#F2D951 #51F288 #516AF2 #F251BA
square
#F2D951 #51F288 #516AF2 #F251BA
split-complementary
#F2D951 #51BAF2 #8851F2
monochromatic
#BBA00E #EECD18 #F2D951 #F6E58A #FBF2C3

Accessibility & contrast

On white

1.42
#F2D951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.82
#F2D951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D951
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D951#FFFFFF#000000##000000
##F2D9511.001.4214.8214.82
#FFFFFF1.421.0021.0021.00
#00000014.8221.001.001.00
##00000014.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD43F
Deuteranopia (green-blind)
#F4DC59
Tritanopia (blue-blind)
#FFCABD
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d951;
/* rgb */ color: rgb(242, 217, 81);
/* oklch */ color: oklch(88.2% 0.154 98.7);
Tailwind
colors: {
  custom: {
    50: '#fae488',
    500: '#f2d951',
    950: '#000000',
  },
}
SCSS
$custom: #f2d951;
$custom-light: #fae488;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d951",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 50.683,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.88196,
    "c": 0.15355,
    "h": 98.7
  },
  "luminance": 0.69097
}

Semantic roles & 50–950 ramp

primary
#F2D951
secondary
#2E44B9
accent
#26E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D951

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

Preview Lab → · Contrast checker → · Palette generator →

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