#F2E173#F2E173

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

Color values

HEX#F2E173
RGBrgb(242, 225, 115)
HSLhsl(52, 83%, 70%)
HSVhsv(52, 52%, 95%)
CMYKcmyk(0%, 7%, 52.5%, 5.1%)
CIE-LABlab(88.91, -8.00, 55.25)
CIE-LCHlch(88.91, 55.83, 98.24°)
OKLaboklab(90.16% -0.0244 0.13)
OKLCHoklch(90.16% 0.132 100.7)
XYZxyz(66.6398, 73.9679, 26.9833)
Luminance0.7397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E173 #7384F2
analogous
#F2A273 #F2E173 #C3F273
triadic
#F2E173 #73F2E1 #E173F2
tetradic
#F2E173 #73F2A2 #7384F2 #F273C3
square
#F2E173 #73F2A2 #7384F2 #F273C3
split-complementary
#F2E173 #73C3F2 #A273F2
monochromatic
#D7BD14 #EDD53B #F2E173 #F7EDAB #FCF9E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2E173#FFFFFF#000000##000000
##F2E1731.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)
#F3DB69
Deuteranopia (green-blind)
#F8E278
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f2e173;
/* rgb */ color: rgb(242, 225, 115);
/* oklch */ color: oklch(90.2% 0.132 100.7);
Tailwind
colors: {
  custom: {
    50: '#f9ea9e',
    500: '#f2e173',
    950: '#000000',
  },
}
SCSS
$custom: #f2e173;
$custom-light: #f9ea9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e173",
  "rgb": {
    "r": 242,
    "g": 225,
    "b": 115
  },
  "hsl": {
    "h": 51.969,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.90163,
    "c": 0.13229,
    "h": 100.7
  },
  "luminance": 0.73965
}

Semantic roles & 50–950 ramp

primary
#F2E173
secondary
#3D51CC
accent
#23DF06
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E173

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

Preview Lab → · Contrast checker → · Palette generator →

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