#F2DF62#F2DF62

#F2DF62 is a very light, vivid yellow. Relative luminance 0.725; OKLCH L 89.6% C 0.145 H 100.7°. Best body text is #000000 at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#F2DF62
RGBrgb(242, 223, 98)
HSLhsl(52, 85%, 67%)
HSVhsv(52, 60%, 95%)
CMYKcmyk(0%, 7.9%, 59.5%, 5.1%)
CIE-LABlab(88.23, -8.26, 62.13)
CIE-LCHlch(88.23, 62.68, 97.57°)
OKLaboklab(89.57% -0.0271 0.1429)
OKLCHoklch(89.57% 0.145 100.7)
XYZxyz(65.2127, 72.5371, 22.1189)
Luminance0.7253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF62 #6275F2
analogous
#F29762 #F2DF62 #BDF262
triadic
#F2DF62 #62F2DF #DF62F2
tetradic
#F2DF62 #62F297 #6275F2 #F262BD
square
#F2DF62 #62F297 #6275F2 #F262BD
split-complementary
#F2DF62 #62BDF2 #9762F2
monochromatic
#C9B111 #EDD329 #F2DF62 #F7EB9B #FBF6D3

Accessibility & contrast

On white

1.35
#F2DF62 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.51
#F2DF62 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF62
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF62#FFFFFF#000000##000000
##F2DF621.001.3515.5115.51
#FFFFFF1.351.0021.0021.00
#00000015.5121.001.001.00
##00000015.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D954
Deuteranopia (green-blind)
#F7E168
Tritanopia (blue-blind)
#FFD1C4
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2df62;
/* rgb */ color: rgb(242, 223, 98);
/* oklch */ color: oklch(89.6% 0.145 100.7);
Tailwind
colors: {
  custom: {
    50: '#f9e893',
    500: '#f2df62',
    950: '#000000',
  },
}
SCSS
$custom: #f2df62;
$custom-light: #f9e893;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df62",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 98
  },
  "hsl": {
    "h": 52.083,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.89568,
    "c": 0.14548,
    "h": 100.7
  },
  "luminance": 0.72534
}

Semantic roles & 50–950 ramp

primary
#F2DF62
secondary
#3346C6
accent
#21E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2DF62

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

Preview Lab → · Contrast checker → · Palette generator →

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