#F2E562#F2E562

#F2E562 is a very light, vivid yellow. Relative luminance 0.758; OKLCH L 90.8% C 0.151 H 103.7°. Best body text is #000000 at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#F2E562
RGBrgb(242, 229, 98)
HSLhsl(55, 85%, 67%)
HSVhsv(55, 60%, 95%)
CMYKcmyk(0%, 5.4%, 59.5%, 5.1%)
CIE-LABlab(89.77, -11.25, 63.83)
CIE-LCHlch(89.77, 64.81, 99.99°)
OKLaboklab(90.79% -0.0356 0.1466)
OKLCHoklch(90.79% 0.151 103.7)
XYZxyz(66.8442, 75.8001, 22.6627)
Luminance0.7580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E562 #626FF2
analogous
#F29D62 #F2E562 #B7F262
triadic
#F2E562 #62F2E5 #E562F2
tetradic
#F2E562 #62F29D #626FF2 #F262B7
square
#F2E562 #62F29D #626FF2 #F262B7
split-complementary
#F2E562 #62B7F2 #9D62F2
monochromatic
#C9B811 #EDDC29 #F2E562 #F7EE9B #FBF8D3

Accessibility & contrast

On white

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

On black

16.16
#F2E562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E562
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E562#FFFFFF#000000##000000
##F2E5621.001.3016.1616.16
#FFFFFF1.301.0021.0021.00
#00000016.1621.001.001.00
##00000016.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8DE53
Deuteranopia (green-blind)
#FCE569
Tritanopia (blue-blind)
#FFD7C9
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f2e562;
/* rgb */ color: rgb(242, 229, 98);
/* oklch */ color: oklch(90.8% 0.151 103.7);
Tailwind
colors: {
  custom: {
    50: '#f9ec93',
    500: '#f2e562',
    950: '#000000',
  },
}
SCSS
$custom: #f2e562;
$custom-light: #f9ec93;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e562",
  "rgb": {
    "r": 242,
    "g": 229,
    "b": 98
  },
  "hsl": {
    "h": 54.583,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.90791,
    "c": 0.15081,
    "h": 103.7
  },
  "luminance": 0.75798
}

Semantic roles & 50–950 ramp

primary
#F2E562
secondary
#3340C6
accent
#18E104
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2E562

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

Preview Lab → · Contrast checker → · Palette generator →

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