#F2E972#F2E972

#F2E972 is a very light, vivid yellow. Relative luminance 0.784; OKLCH L 91.8% C 0.141 H 104.9°. Best body text is #000000 at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#F2E972
RGBrgb(242, 233, 114)
HSLhsl(56, 83%, 70%)
HSVhsv(56, 53%, 95%)
CMYKcmyk(0%, 3.7%, 52.9%, 5.1%)
CIE-LABlab(90.95, -12.06, 58.10)
CIE-LCHlch(90.95, 59.34, 101.73°)
OKLaboklab(91.78% -0.0362 0.1361)
OKLCHoklch(91.78% 0.141 104.9)
XYZxyz(68.7961, 78.3721, 27.4197)
Luminance0.7837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E972 #727BF2
analogous
#F2A972 #F2E972 #BBF272
triadic
#F2E972 #72F2E9 #E972F2
tetradic
#F2E972 #72F2A9 #727BF2 #F272BB
square
#F2E972 #72F2A9 #727BF2 #F272BB
split-complementary
#F2E972 #72BBF2 #A972F2
monochromatic
#D6C814 #EDE03A #F2E972 #F7F2AA #FCFAE2

Accessibility & contrast

On white

1.26
#F2E972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.67
#F2E972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E972
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E972#FFFFFF#000000##000000
##F2E9721.001.2616.6716.67
#FFFFFF1.261.0021.0021.00
#00000016.6721.001.001.00
##00000016.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE267
Deuteranopia (green-blind)
#FEE878
Tritanopia (blue-blind)
#FFDCCE
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e972;
/* rgb */ color: rgb(242, 233, 114);
/* oklch */ color: oklch(91.8% 0.141 104.9);
Tailwind
colors: {
  custom: {
    50: '#f9ef9e',
    500: '#f2e972',
    950: '#000000',
  },
}
SCSS
$custom: #f2e972;
$custom-light: #f9ef9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e972",
  "rgb": {
    "r": 242,
    "g": 233,
    "b": 114
  },
  "hsl": {
    "h": 55.781,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.91781,
    "c": 0.14082,
    "h": 104.9
  },
  "luminance": 0.7837
}

Semantic roles & 50–950 ramp

primary
#F2E972
secondary
#3D47CC
accent
#15E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F2E972

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

Preview Lab → · Contrast checker → · Palette generator →

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