#F2DC5E#F2DC5E

#F2DC5E is a very light, vivid yellow. Relative luminance 0.709; OKLCH L 88.9% C 0.146 H 99.4°. Best body text is #000000 at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#F2DC5E
RGBrgb(242, 220, 94)
HSLhsl(51, 85%, 66%)
HSVhsv(51, 61%, 95%)
CMYKcmyk(0%, 9.1%, 61.2%, 5.1%)
CIE-LABlab(87.42, -7.01, 62.98)
CIE-LCHlch(87.42, 63.37, 96.36°)
OKLaboklab(88.92% -0.024 0.1442)
OKLCHoklch(88.92% 0.146 99.4)
XYZxyz(64.2341, 70.8746, 20.8842)
Luminance0.7087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DC5E #5E74F2
analogous
#F2925E #F2DC5E #BEF25E
triadic
#F2DC5E #5EF2DC #DC5EF2
tetradic
#F2DC5E #5EF292 #5E74F2 #F25EBE
square
#F2DC5E #5EF292 #5E74F2 #F25EBE
split-complementary
#F2DC5E #5EBEF2 #925EF2
monochromatic
#C6AB10 #EDD025 #F2DC5E #F7E897 #FBF5CF

Accessibility & contrast

On white

1.38
#F2DC5E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.17
#F2DC5E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DC5E
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DC5E#FFFFFF#000000##000000
##F2DC5E1.001.3815.1715.17
#FFFFFF1.381.0021.0021.00
#00000015.1721.001.001.00
##00000015.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD650
Deuteranopia (green-blind)
#F5DF64
Tritanopia (blue-blind)
#FFCDC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f2dc5e;
/* rgb */ color: rgb(242, 220, 94);
/* oklch */ color: oklch(88.9% 0.146 99.4);
Tailwind
colors: {
  custom: {
    50: '#fae690',
    500: '#f2dc5e',
    950: '#000000',
  },
}
SCSS
$custom: #f2dc5e;
$custom-light: #fae690;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dc5e",
  "rgb": {
    "r": 242,
    "g": 220,
    "b": 94
  },
  "hsl": {
    "h": 51.081,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.8892,
    "c": 0.14619,
    "h": 99.4
  },
  "luminance": 0.70872
}

Semantic roles & 50–950 ramp

primary
#F2DC5E
secondary
#3147C3
accent
#25E204
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2DC5E

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

Preview Lab → · Contrast checker → · Palette generator →

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