#F2DE6A#F2DE6A

#F2DE6A is a very light, vivid yellow. Relative luminance 0.722; OKLCH L 89.5% C 0.138 H 99.7°. Best body text is #000000 at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#F2DE6A
RGBrgb(242, 222, 106)
HSLhsl(51, 84%, 68%)
HSVhsv(51, 56%, 95%)
CMYKcmyk(0%, 8.3%, 56.2%, 5.1%)
CIE-LABlab(88.05, -7.19, 58.38)
CIE-LCHlch(88.05, 58.82, 97.02°)
OKLaboklab(89.45% -0.0231 0.1359)
OKLCHoklch(89.45% 0.138 99.7)
XYZxyz(65.3431, 72.1630, 24.1198)
Luminance0.7216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DE6A #6A7EF2
analogous
#F29A6A #F2DE6A #C2F26A
triadic
#F2DE6A #6AF2DE #DE6AF2
tetradic
#F2DE6A #6AF29A #6A7EF2 #F26AC2
square
#F2DE6A #6AF29A #6A7EF2 #F26AC2
split-complementary
#F2DE6A #6AC2F2 #9A6AF2
monochromatic
#CFB412 #EDD232 #F2DE6A #F7EAA2 #FCF7DB

Accessibility & contrast

On white

1.36
#F2DE6A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.43
#F2DE6A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DE6A
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DE6A#FFFFFF#000000##000000
##F2DE6A1.001.3615.4315.43
#FFFFFF1.361.0021.0021.00
#00000015.4321.001.001.00
##00000015.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D95E
Deuteranopia (green-blind)
#F6E070
Tritanopia (blue-blind)
#FFD0C4
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2de6a;
/* rgb */ color: rgb(242, 222, 106);
/* oklch */ color: oklch(89.5% 0.138 99.7);
Tailwind
colors: {
  custom: {
    50: '#f9e898',
    500: '#f2de6a',
    950: '#000000',
  },
}
SCSS
$custom: #f2de6a;
$custom-light: #f9e898;
$custom-dark: #000000;
JSON
{
  "hex": "#f2de6a",
  "rgb": {
    "r": 242,
    "g": 222,
    "b": 106
  },
  "hsl": {
    "h": 51.176,
    "s": 83.951,
    "l": 68.235
  },
  "oklch": {
    "l": 0.8945,
    "c": 0.1378,
    "h": 99.7
  },
  "luminance": 0.7216
}

Semantic roles & 50–950 ramp

primary
#F2DE6A
secondary
#364BCB
accent
#25E005
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2DE6A

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

Preview Lab → · Contrast checker → · Palette generator →

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