#F2D562#F2D562

#F2D562 is a very light, vivid yellow. Relative luminance 0.673; OKLCH L 87.6% C 0.137 H 95.2°. Best body text is #000000 at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#F2D562
RGBrgb(242, 213, 98)
HSLhsl(48, 85%, 67%)
HSVhsv(48, 60%, 95%)
CMYKcmyk(0%, 12%, 59.5%, 5.1%)
CIE-LABlab(85.68, -3.21, 59.29)
CIE-LCHlch(85.68, 59.38, 93.10°)
OKLaboklab(87.55% -0.0126 0.1369)
OKLCHoklch(87.55% 0.137 95.2)
XYZxyz(62.6195, 67.3506, 21.2545)
Luminance0.6735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D562 #627FF2
analogous
#F28D62 #F2D562 #C7F262
triadic
#F2D562 #62F2D5 #D562F2
tetradic
#F2D562 #62F28D #627FF2 #F262C7
square
#F2D562 #62F28D #627FF2 #F262C7
split-complementary
#F2D562 #62C7F2 #8D62F2
monochromatic
#C9A411 #EDC629 #F2D562 #F7E49B #FBF3D3

Accessibility & contrast

On white

1.45
#F2D562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.47
#F2D562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D562
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D562#FFFFFF#000000##000000
##F2D5621.001.4514.4714.47
#FFFFFF1.451.0021.0021.00
#00000014.4721.001.001.00
##00000014.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D156
Deuteranopia (green-blind)
#F0DA67
Tritanopia (blue-blind)
#FFC6BC
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f2d562;
/* rgb */ color: rgb(242, 213, 98);
/* oklch */ color: oklch(87.6% 0.137 95.2);
Tailwind
colors: {
  custom: {
    50: '#f9e192',
    500: '#f2d562',
    950: '#000000',
  },
}
SCSS
$custom: #f2d562;
$custom-light: #f9e192;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d562",
  "rgb": {
    "r": 242,
    "g": 213,
    "b": 98
  },
  "hsl": {
    "h": 47.917,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.87551,
    "c": 0.13746,
    "h": 95.2
  },
  "luminance": 0.67348
}

Semantic roles & 50–950 ramp

primary
#F2D562
secondary
#3350C6
accent
#31E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D562

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

Preview Lab → · Contrast checker → · Palette generator →

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