#F2E470#F2E470

#F2E470 is a very light, vivid yellow. Relative luminance 0.755; OKLCH L 90.7% C 0.138 H 102.5°. Best body text is #000000 at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#F2E470
RGBrgb(242, 228, 112)
HSLhsl(54, 83%, 69%)
HSVhsv(54, 54%, 95%)
CMYKcmyk(0%, 5.8%, 53.7%, 5.1%)
CIE-LABlab(89.64, -9.73, 57.49)
CIE-LCHlch(89.64, 58.31, 99.61°)
OKLaboklab(90.74% -0.0298 0.1346)
OKLCHoklch(90.74% 0.138 102.5)
XYZxyz(67.2881, 75.5363, 26.3616)
Luminance0.7553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E470 #707EF2
analogous
#F2A370 #F2E470 #BFF270
triadic
#F2E470 #70F2E4 #E470F2
tetradic
#F2E470 #70F2A3 #707EF2 #F270BF
square
#F2E470 #70F2A3 #707EF2 #F270BF
split-complementary
#F2E470 #70BFF2 #A370F2
monochromatic
#D4C013 #EDD938 #F2E470 #F7EFA8 #FCF9E0

Accessibility & contrast

On white

1.30
#F2E470 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.11
#F2E470 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E470
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E470#FFFFFF#000000##000000
##F2E4701.001.3016.1116.11
#FFFFFF1.301.0021.0021.00
#00000016.1121.001.001.00
##00000016.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DE65
Deuteranopia (green-blind)
#FAE476
Tritanopia (blue-blind)
#FFD7CA
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f2e470;
/* rgb */ color: rgb(242, 228, 112);
/* oklch */ color: oklch(90.7% 0.138 102.5);
Tailwind
colors: {
  custom: {
    50: '#f9ec9c',
    500: '#f2e470',
    950: '#000000',
  },
}
SCSS
$custom: #f2e470;
$custom-light: #f9ec9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e470",
  "rgb": {
    "r": 242,
    "g": 228,
    "b": 112
  },
  "hsl": {
    "h": 53.538,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.90736,
    "c": 0.13783,
    "h": 102.5
  },
  "luminance": 0.75534
}

Semantic roles & 50–950 ramp

primary
#F2E470
secondary
#3B4ACB
accent
#1DE006
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2E470

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

Preview Lab → · Contrast checker → · Palette generator →

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