#F2DD72#F2DD72

#F2DD72 is a very light, vivid yellow. Relative luminance 0.718; OKLCH L 89.3% C 0.130 H 98.4°. Best body text is #000000 at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#F2DD72
RGBrgb(242, 221, 114)
HSLhsl(50, 83%, 70%)
HSVhsv(50, 53%, 95%)
CMYKcmyk(0%, 8.7%, 52.9%, 5.1%)
CIE-LABlab(87.88, -6.07, 54.50)
CIE-LCHlch(87.88, 54.84, 96.35°)
OKLaboklab(89.34% -0.019 0.1283)
OKLCHoklch(89.34% 0.13 98.4)
XYZxyz(65.5139, 71.8076, 26.3257)
Luminance0.7180 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DD72 #7287F2
analogous
#F29D72 #F2DD72 #C7F272
triadic
#F2DD72 #72F2DD #DD72F2
tetradic
#F2DD72 #72F29D #7287F2 #F272C7
square
#F2DD72 #72F29D #7287F2 #F272C7
split-complementary
#F2DD72 #72C7F2 #9D72F2
monochromatic
#D6B614 #EDCF3A #F2DD72 #F7EBAA #FCF8E2

Accessibility & contrast

On white

1.37
#F2DD72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.36
#F2DD72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DD72
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DD72#FFFFFF#000000##000000
##F2DD721.001.3715.3615.36
#FFFFFF1.371.0021.0021.00
#00000015.3621.001.001.00
##00000015.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD868
Deuteranopia (green-blind)
#F5E077
Tritanopia (blue-blind)
#FFD0C5
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f2dd72;
/* rgb */ color: rgb(242, 221, 114);
/* oklch */ color: oklch(89.3% 0.130 98.4);
Tailwind
colors: {
  custom: {
    50: '#f9e79d',
    500: '#f2dd72',
    950: '#000000',
  },
}
SCSS
$custom: #f2dd72;
$custom-light: #f9e79d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dd72",
  "rgb": {
    "r": 242,
    "g": 221,
    "b": 114
  },
  "hsl": {
    "h": 50.156,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.89342,
    "c": 0.12969,
    "h": 98.4
  },
  "luminance": 0.71805
}

Semantic roles & 50–950 ramp

primary
#F2DD72
secondary
#3D54CC
accent
#2AE006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2DD72

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

Preview Lab → · Contrast checker → · Palette generator →

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