#F2E962#F2E962

#F2E962 is a very light, vivid yellow. Relative luminance 0.780; OKLCH L 91.6% C 0.155 H 105.5°. Best body text is #000000 at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#F2E962
RGBrgb(242, 233, 98)
HSLhsl(56, 85%, 67%)
HSVhsv(56, 60%, 95%)
CMYKcmyk(0%, 3.7%, 59.5%, 5.1%)
CIE-LABlab(90.80, -13.22, 64.96)
CIE-LCHlch(90.80, 66.29, 101.51°)
OKLaboklab(91.61% -0.0412 0.149)
OKLCHoklch(91.61% 0.155 105.5)
XYZxyz(67.9638, 78.0392, 23.0359)
Luminance0.7804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E962 #626BF2
analogous
#F2A162 #F2E962 #B3F262
triadic
#F2E962 #62F2E9 #E962F2
tetradic
#F2E962 #62F2A1 #626BF2 #F262B3
square
#F2E962 #62F2A1 #626BF2 #F262B3
split-complementary
#F2E962 #62B3F2 #A162F2
monochromatic
#C9BD11 #EDE129 #F2E962 #F7F19B #FBF9D3

Accessibility & contrast

On white

1.26
#F2E962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.61
#F2E962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E962
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E962#FFFFFF#000000##000000
##F2E9621.001.2616.6116.61
#FFFFFF1.261.0021.0021.00
#00000016.6121.001.001.00
##00000016.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE153
Deuteranopia (green-blind)
#FFE76A
Tritanopia (blue-blind)
#FFDBCC
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e962;
/* rgb */ color: rgb(242, 233, 98);
/* oklch */ color: oklch(91.6% 0.155 105.5);
Tailwind
colors: {
  custom: {
    50: '#f9ef94',
    500: '#f2e962',
    950: '#000000',
  },
}
SCSS
$custom: #f2e962;
$custom-light: #f9ef94;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e962",
  "rgb": {
    "r": 242,
    "g": 233,
    "b": 98
  },
  "hsl": {
    "h": 56.25,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.91611,
    "c": 0.15456,
    "h": 105.5
  },
  "luminance": 0.78037
}

Semantic roles & 50–950 ramp

primary
#F2E962
secondary
#333CC6
accent
#12E104
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2E962

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

Preview Lab → · Contrast checker → · Palette generator →

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