#F2D462#F2D462

#F2D462 is a very light, vivid yellow. Relative luminance 0.668; OKLCH L 87.4% C 0.137 H 94.7°. Best body text is #000000 at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#F2D462
RGBrgb(242, 212, 98)
HSLhsl(48, 85%, 67%)
HSVhsv(48, 60%, 95%)
CMYKcmyk(0%, 12.4%, 59.5%, 5.1%)
CIE-LABlab(85.43, -2.70, 59.01)
CIE-LCHlch(85.43, 59.07, 92.62°)
OKLaboklab(87.35% -0.0111 0.1363)
OKLCHoklch(87.35% 0.137 94.7)
XYZxyz(62.3687, 66.8491, 21.1709)
Luminance0.6685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D462 #6280F2
analogous
#F28C62 #F2D462 #C8F262
triadic
#F2D462 #62F2D4 #D462F2
tetradic
#F2D462 #62F28C #6280F2 #F262C8
square
#F2D462 #62F28C #6280F2 #F262C8
split-complementary
#F2D462 #62C8F2 #8C62F2
monochromatic
#C9A311 #EDC529 #F2D462 #F7E39B #FBF3D3

Accessibility & contrast

On white

1.46
#F2D462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.37
#F2D462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D462
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D462#FFFFFF#000000##000000
##F2D4621.001.4614.3714.37
#FFFFFF1.461.0021.0021.00
#00000014.3721.001.001.00
##00000014.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D056
Deuteranopia (green-blind)
#EFD967
Tritanopia (blue-blind)
#FFC5BB
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d462;
/* rgb */ color: rgb(242, 212, 98);
/* oklch */ color: oklch(87.4% 0.137 94.7);
Tailwind
colors: {
  custom: {
    50: '#f9e092',
    500: '#f2d462',
    950: '#000000',
  },
}
SCSS
$custom: #f2d462;
$custom-light: #f9e092;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d462",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 98
  },
  "hsl": {
    "h": 47.5,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.87351,
    "c": 0.13672,
    "h": 94.7
  },
  "luminance": 0.66846
}

Semantic roles & 50–950 ramp

primary
#F2D462
secondary
#3351C6
accent
#32E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D462

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

Preview Lab → · Contrast checker → · Palette generator →

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