#F2E462#F2E462

#F2E462 is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.6% C 0.150 H 103.2°. Best body text is #000000 at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#F2E462
RGBrgb(242, 228, 98)
HSLhsl(54, 85%, 67%)
HSVhsv(54, 60%, 95%)
CMYKcmyk(0%, 5.8%, 59.5%, 5.1%)
CIE-LABlab(89.51, -10.75, 63.55)
CIE-LCHlch(89.51, 64.45, 99.60°)
OKLaboklab(90.59% -0.0342 0.146)
OKLCHoklch(90.59% 0.15 103.2)
XYZxyz(66.5683, 75.2484, 22.5708)
Luminance0.7525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E462 #6270F2
analogous
#F29C62 #F2E462 #B8F262
triadic
#F2E462 #62F2E4 #E462F2
tetradic
#F2E462 #62F29C #6270F2 #F262B8
square
#F2E462 #62F29C #6270F2 #F262B8
split-complementary
#F2E462 #62B8F2 #9C62F2
monochromatic
#C9B711 #EDDA29 #F2E462 #F7EE9B #FBF7D3

Accessibility & contrast

On white

1.31
#F2E462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.05
#F2E462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E462
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E462#FFFFFF#000000##000000
##F2E4621.001.3116.0516.05
#FFFFFF1.311.0021.0021.00
#00000016.0521.001.001.00
##00000016.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7DD54
Deuteranopia (green-blind)
#FBE469
Tritanopia (blue-blind)
#FFD6C8
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f2e462;
/* rgb */ color: rgb(242, 228, 98);
/* oklch */ color: oklch(90.6% 0.150 103.2);
Tailwind
colors: {
  custom: {
    50: '#f9ec93',
    500: '#f2e462',
    950: '#000000',
  },
}
SCSS
$custom: #f2e462;
$custom-light: #f9ec93;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e462",
  "rgb": {
    "r": 242,
    "g": 228,
    "b": 98
  },
  "hsl": {
    "h": 54.167,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.90586,
    "c": 0.1499,
    "h": 103.2
  },
  "luminance": 0.75246
}

Semantic roles & 50–950 ramp

primary
#F2E462
secondary
#3341C6
accent
#1AE104
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2E462

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

Preview Lab → · Contrast checker → · Palette generator →

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