#F2E56B#F2E56B

#F2E56B is a very light, vivid yellow. Relative luminance 0.760; OKLCH L 90.9% C 0.143 H 103.2°. Best body text is #000000 at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#F2E56B
RGBrgb(242, 229, 107)
HSLhsl(54, 84%, 68%)
HSVhsv(54, 56%, 95%)
CMYKcmyk(0%, 5.4%, 55.8%, 5.1%)
CIE-LABlab(89.85, -10.61, 59.99)
CIE-LCHlch(89.85, 60.92, 100.03°)
OKLaboklab(90.88% -0.0328 0.1394)
OKLCHoklch(90.88% 0.143 103.2)
XYZxyz(67.2933, 75.9798, 25.0279)
Luminance0.7598 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E56B #6B78F2
analogous
#F2A16B #F2E56B #BBF26B
triadic
#F2E56B #6BF2E5 #E56BF2
tetradic
#F2E56B #6BF2A1 #6B78F2 #F26BBB
square
#F2E56B #6BF2A1 #6B78F2 #F26BBB
split-complementary
#F2E56B #6BBBF2 #A16BF2
monochromatic
#D0BE12 #EDDB33 #F2E56B #F7EFA3 #FCF9DC

Accessibility & contrast

On white

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

On black

16.20
#F2E56B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E56B
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E56B#FFFFFF#000000##000000
##F2E56B1.001.3016.2016.20
#FFFFFF1.301.0021.0021.00
#00000016.2021.001.001.00
##00000016.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7DE5F
Deuteranopia (green-blind)
#FBE571
Tritanopia (blue-blind)
#FFD7CA
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f2e56b;
/* rgb */ color: rgb(242, 229, 107);
/* oklch */ color: oklch(90.9% 0.143 103.2);
Tailwind
colors: {
  custom: {
    50: '#f9ed99',
    500: '#f2e56b',
    950: '#000000',
  },
}
SCSS
$custom: #f2e56b;
$custom-light: #f9ed99;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e56b",
  "rgb": {
    "r": 242,
    "g": 229,
    "b": 107
  },
  "hsl": {
    "h": 54.222,
    "s": 83.851,
    "l": 68.431
  },
  "oklch": {
    "l": 0.90884,
    "c": 0.14323,
    "h": 103.2
  },
  "luminance": 0.75977
}

Semantic roles & 50–950 ramp

primary
#F2E56B
secondary
#3645CB
accent
#1AE005
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2E56B

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

Preview Lab → · Contrast checker → · Palette generator →

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