#F2DF72#F2DF72

#F2DF72 is a very light, vivid yellow. Relative luminance 0.729; OKLCH L 89.7% C 0.131 H 99.6°. Best body text is #000000 at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#F2DF72
RGBrgb(242, 223, 114)
HSLhsl(51, 83%, 70%)
HSVhsv(51, 53%, 95%)
CMYKcmyk(0%, 7.9%, 52.9%, 5.1%)
CIE-LABlab(88.39, -7.07, 55.10)
CIE-LCHlch(88.39, 55.55, 97.32°)
OKLaboklab(89.75% -0.0219 0.1296)
OKLCHoklch(89.75% 0.131 99.6)
XYZxyz(66.0451, 72.8700, 26.5027)
Luminance0.7287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF72 #7285F2
analogous
#F29F72 #F2DF72 #C5F272
triadic
#F2DF72 #72F2DF #DF72F2
tetradic
#F2DF72 #72F29F #7285F2 #F272C5
square
#F2DF72 #72F29F #7285F2 #F272C5
split-complementary
#F2DF72 #72C5F2 #9F72F2
monochromatic
#D6B914 #EDD23A #F2DF72 #F7ECAA #FCF8E2

Accessibility & contrast

On white

1.35
#F2DF72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.57
#F2DF72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF72
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF72#FFFFFF#000000##000000
##F2DF721.001.3515.5715.57
#FFFFFF1.351.0021.0021.00
#00000015.5721.001.001.00
##00000015.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA68
Deuteranopia (green-blind)
#F6E177
Tritanopia (blue-blind)
#FFD2C6
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df72;
/* rgb */ color: rgb(242, 223, 114);
/* oklch */ color: oklch(89.7% 0.131 99.6);
Tailwind
colors: {
  custom: {
    50: '#f9e89d',
    500: '#f2df72',
    950: '#000000',
  },
}
SCSS
$custom: #f2df72;
$custom-light: #f9e89d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df72",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 114
  },
  "hsl": {
    "h": 51.094,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.89746,
    "c": 0.13144,
    "h": 99.6
  },
  "luminance": 0.72868
}

Semantic roles & 50–950 ramp

primary
#F2DF72
secondary
#3D52CC
accent
#26E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2DF72

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

Preview Lab → · Contrast checker → · Palette generator →

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