#F2E07B#F2E07B

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

Color values

HEX#F2E07B
RGBrgb(242, 224, 123)
HSLhsl(51, 82%, 72%)
HSVhsv(51, 49%, 95%)
CMYKcmyk(0%, 7.4%, 49.2%, 5.1%)
CIE-LABlab(88.74, -6.82, 51.29)
CIE-LCHlch(88.74, 51.74, 97.58°)
OKLaboklab(90.06% -0.0202 0.122)
OKLCHoklch(90.06% 0.124 99.4)
XYZxyz(66.8507, 73.6210, 29.4239)
Luminance0.7362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E07B #7B8DF2
analogous
#F2A57B #F2E07B #C9F27B
triadic
#F2E07B #7BF2E0 #E07BF2
tetradic
#F2E07B #7BF2A5 #7B8DF2 #F27BC9
square
#F2E07B #7BF2A5 #7B8DF2 #F27BC9
split-complementary
#F2E07B #7BC9F2 #A57BF2
monochromatic
#DDBF16 #EDD343 #F2E07B #F7EDB3 #FCF8E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2E07B#FFFFFF#000000##000000
##F2E07B1.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)
#F1DB72
Deuteranopia (green-blind)
#F6E27F
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e07b;
/* rgb */ color: rgb(242, 224, 123);
/* oklch */ color: oklch(90.1% 0.124 99.4);
Tailwind
colors: {
  custom: {
    50: '#f8e9a3',
    500: '#f2e07b',
    950: '#000000',
  },
}
SCSS
$custom: #f2e07b;
$custom-light: #f8e9a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e07b",
  "rgb": {
    "r": 242,
    "g": 224,
    "b": 123
  },
  "hsl": {
    "h": 50.924,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.90062,
    "c": 0.12371,
    "h": 99.4
  },
  "luminance": 0.73619
}

Semantic roles & 50–950 ramp

primary
#F2E07B
secondary
#4559CD
accent
#28DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E07B

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

Preview Lab → · Contrast checker → · Palette generator →

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