#F2E172#F2E172

#F2E172 is a very light, vivid yellow. Relative luminance 0.739; OKLCH L 90.1% C 0.133 H 100.7°. Best body text is #000000 at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#F2E172
RGBrgb(242, 225, 114)
HSLhsl(52, 83%, 70%)
HSVhsv(52, 53%, 95%)
CMYKcmyk(0%, 7%, 52.9%, 5.1%)
CIE-LABlab(88.90, -8.08, 55.70)
CIE-LCHlch(88.90, 56.28, 98.25°)
OKLaboklab(90.15% -0.0248 0.1309)
OKLCHoklch(90.15% 0.133 100.7)
XYZxyz(66.5826, 73.9450, 26.6819)
Luminance0.7394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E172 #7283F2
analogous
#F2A172 #F2E172 #C3F272
triadic
#F2E172 #72F2E1 #E172F2
tetradic
#F2E172 #72F2A1 #7283F2 #F272C3
square
#F2E172 #72F2A1 #7283F2 #F272C3
split-complementary
#F2E172 #72C3F2 #A172F2
monochromatic
#D6BC14 #EDD53A #F2E172 #F7EDAA #FCF9E2

Accessibility & contrast

On white

1.33
#F2E172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.79
#F2E172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E172
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E172#FFFFFF#000000##000000
##F2E1721.001.3315.7915.79
#FFFFFF1.331.0021.0021.00
#00000015.7921.001.001.00
##00000015.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DB68
Deuteranopia (green-blind)
#F8E277
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e172;
/* rgb */ color: rgb(242, 225, 114);
/* oklch */ color: oklch(90.1% 0.133 100.7);
Tailwind
colors: {
  custom: {
    50: '#f9ea9d',
    500: '#f2e172',
    950: '#000000',
  },
}
SCSS
$custom: #f2e172;
$custom-light: #f9ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e172",
  "rgb": {
    "r": 242,
    "g": 225,
    "b": 114
  },
  "hsl": {
    "h": 52.031,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.9015,
    "c": 0.13323,
    "h": 100.7
  },
  "luminance": 0.73943
}

Semantic roles & 50–950 ramp

primary
#F2E172
secondary
#3D50CC
accent
#23E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2E172

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

Preview Lab → · Contrast checker → · Palette generator →

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