#F2D751#F2D751

#F2D751 is a very light, vivid yellow. Relative luminance 0.681; OKLCH L 87.8% C 0.152 H 97.7°. Best body text is #000000 at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#F2D751
RGBrgb(242, 215, 81)
HSLhsl(50, 86%, 63%)
HSVhsv(50, 67%, 95%)
CMYKcmyk(0%, 11.2%, 66.5%, 5.1%)
CIE-LABlab(86.04, -5.27, 66.92)
CIE-LCHlch(86.04, 67.12, 94.50°)
OKLaboklab(87.79% -0.0204 0.1507)
OKLCHoklch(87.79% 0.152 97.7)
XYZxyz(62.4065, 68.0752, 17.6357)
Luminance0.6807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D751 #516CF2
analogous
#F28651 #F2D751 #BCF251
triadic
#F2D751 #51F2D7 #D751F2
tetradic
#F2D751 #51F286 #516CF2 #F251BC
square
#F2D751 #51F286 #516CF2 #F251BC
split-complementary
#F2D751 #51BCF2 #8651F2
monochromatic
#BB9E0E #EECA18 #F2D751 #F6E48A #FBF1C3

Accessibility & contrast

On white

1.44
#F2D751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.61
#F2D751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D751
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D751#FFFFFF#000000##000000
##F2D7511.001.4414.6114.61
#FFFFFF1.441.0021.0021.00
#00000014.6121.001.001.00
##00000014.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD23F
Deuteranopia (green-blind)
#F3DB58
Tritanopia (blue-blind)
#FFC8BB
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #f2d751;
/* rgb */ color: rgb(242, 215, 81);
/* oklch */ color: oklch(87.8% 0.152 97.7);
Tailwind
colors: {
  custom: {
    50: '#fae388',
    500: '#f2d751',
    950: '#000000',
  },
}
SCSS
$custom: #f2d751;
$custom-light: #fae388;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d751",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 81
  },
  "hsl": {
    "h": 49.938,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.87793,
    "c": 0.15203,
    "h": 97.7
  },
  "luminance": 0.68072
}

Semantic roles & 50–950 ramp

primary
#F2D751
secondary
#2E45B9
accent
#28E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D751

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

Preview Lab → · Contrast checker → · Palette generator →

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