#F2D851#F2D851

#F2D851 is a very light, vivid yellow. Relative luminance 0.686; OKLCH L 88.0% C 0.153 H 98.2°. Best body text is #000000 at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#F2D851
RGBrgb(242, 216, 81)
HSLhsl(50, 86%, 63%)
HSVhsv(50, 67%, 95%)
CMYKcmyk(0%, 10.7%, 66.5%, 5.1%)
CIE-LABlab(86.30, -5.77, 67.18)
CIE-LCHlch(86.30, 67.43, 94.91°)
OKLaboklab(87.99% -0.0219 0.1512)
OKLCHoklch(87.99% 0.153 98.2)
XYZxyz(62.6619, 68.5860, 17.7208)
Luminance0.6858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D851 #516BF2
analogous
#F28851 #F2D851 #BBF251
triadic
#F2D851 #51F2D8 #D851F2
tetradic
#F2D851 #51F288 #516BF2 #F251BB
square
#F2D851 #51F288 #516BF2 #F251BB
split-complementary
#F2D851 #51BBF2 #8851F2
monochromatic
#BB9F0E #EECB18 #F2D851 #F6E58A #FBF2C3

Accessibility & contrast

On white

1.43
#F2D851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.72
#F2D851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D851
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D851#FFFFFF#000000##000000
##F2D8511.001.4314.7214.72
#FFFFFF1.431.0021.0021.00
#00000014.7221.001.001.00
##00000014.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD33F
Deuteranopia (green-blind)
#F3DC58
Tritanopia (blue-blind)
#FFC9BC
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f2d851;
/* rgb */ color: rgb(242, 216, 81);
/* oklch */ color: oklch(88.0% 0.153 98.2);
Tailwind
colors: {
  custom: {
    50: '#fae388',
    500: '#f2d851',
    950: '#000000',
  },
}
SCSS
$custom: #f2d851;
$custom-light: #fae388;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d851",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 81
  },
  "hsl": {
    "h": 50.311,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.87994,
    "c": 0.15278,
    "h": 98.2
  },
  "luminance": 0.68583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2D851

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

Preview Lab → · Contrast checker → · Palette generator →

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