#F2E07A#F2E07A

#F2E07A is a very light, vivid yellow. Relative luminance 0.736; OKLCH L 90.0% C 0.125 H 99.5°. Best body text is #000000 at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#F2E07A
RGBrgb(242, 224, 122)
HSLhsl(51, 82%, 71%)
HSVhsv(51, 50%, 95%)
CMYKcmyk(0%, 7.4%, 49.6%, 5.1%)
CIE-LABlab(88.73, -6.91, 51.75)
CIE-LCHlch(88.73, 52.21, 97.60°)
OKLaboklab(90.05% -0.0206 0.123)
OKLCHoklch(90.05% 0.125 99.5)
XYZxyz(66.7885, 73.5961, 29.0959)
Luminance0.7359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E07A #7A8CF2
analogous
#F2A47A #F2E07A #C8F27A
triadic
#F2E07A #7AF2E0 #E07AF2
tetradic
#F2E07A #7AF2A4 #7A8CF2 #F27AC8
square
#F2E07A #7AF2A4 #7A8CF2 #F27AC8
split-complementary
#F2E07A #7AC8F2 #A47AF2
monochromatic
#DCBE16 #EDD342 #F2E07A #F7EDB2 #FCF9E3

Accessibility & contrast

On white

1.34
#F2E07A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.72
#F2E07A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E07A
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E07A#FFFFFF#000000##000000
##F2E07A1.001.3415.7215.72
#FFFFFF1.341.0021.0021.00
#00000015.7221.001.001.00
##00000015.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DB71
Deuteranopia (green-blind)
#F6E27E
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e07a;
/* rgb */ color: rgb(242, 224, 122);
/* oklch */ color: oklch(90.0% 0.125 99.5);
Tailwind
colors: {
  custom: {
    50: '#f8e9a2',
    500: '#f2e07a',
    950: '#000000',
  },
}
SCSS
$custom: #f2e07a;
$custom-light: #f8e9a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e07a",
  "rgb": {
    "r": 242,
    "g": 224,
    "b": 122
  },
  "hsl": {
    "h": 51,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.90049,
    "c": 0.12469,
    "h": 99.5
  },
  "luminance": 0.73594
}

Semantic roles & 50–950 ramp

primary
#F2E07A
secondary
#4458CD
accent
#27DF07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E07A

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

Preview Lab → · Contrast checker → · Palette generator →

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