#F2EC72#F2EC72

#F2EC72 is a very light, vivid yellow. Relative luminance 0.801; OKLCH L 92.4% C 0.144 H 106.3°. Best body text is #000000 at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#F2EC72
RGBrgb(242, 236, 114)
HSLhsl(57, 83%, 70%)
HSVhsv(57, 53%, 95%)
CMYKcmyk(0%, 2.5%, 52.9%, 5.1%)
CIE-LABlab(91.72, -13.54, 58.99)
CIE-LCHlch(91.72, 60.53, 102.92°)
OKLaboklab(92.4% -0.0404 0.138)
OKLCHoklch(92.4% 0.144 106.3)
XYZxyz(69.6526, 80.0851, 27.7052)
Luminance0.8008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC72 #7278F2
analogous
#F2AC72 #F2EC72 #B8F272
triadic
#F2EC72 #72F2EC #EC72F2
tetradic
#F2EC72 #72F2AC #7278F2 #F272B8
square
#F2EC72 #72F2AC #7278F2 #F272B8
split-complementary
#F2EC72 #72B8F2 #AC72F2
monochromatic
#D6CD14 #EDE43A #F2EC72 #F7F4AA #FCFBE2

Accessibility & contrast

On white

1.23
#F2EC72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.02
#F2EC72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC72
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC72#FFFFFF#000000##000000
##F2EC721.001.2317.0217.02
#FFFFFF1.231.0021.0021.00
#00000017.0221.001.001.00
##00000017.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE466
Deuteranopia (green-blind)
#FFEA78
Tritanopia (blue-blind)
#FFDFD1
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ec72;
/* rgb */ color: rgb(242, 236, 114);
/* oklch */ color: oklch(92.4% 0.144 106.3);
Tailwind
colors: {
  custom: {
    50: '#f9f19e',
    500: '#f2ec72',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec72;
$custom-light: #f9f19e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec72",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 114
  },
  "hsl": {
    "h": 57.188,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.92396,
    "c": 0.14383,
    "h": 106.3
  },
  "luminance": 0.80083
}

Semantic roles & 50–950 ramp

primary
#F2EC72
secondary
#3D43CC
accent
#10E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F2EC72

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

Preview Lab → · Contrast checker → · Palette generator →

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