#F2DF6C#F2DF6C

#F2DF6C is a very light, vivid yellow. Relative luminance 0.727; OKLCH L 89.7% C 0.137 H 100.1°. Best body text is #000000 at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#F2DF6C
RGBrgb(242, 223, 108)
HSLhsl(51, 84%, 69%)
HSVhsv(51, 55%, 95%)
CMYKcmyk(0%, 7.9%, 55.4%, 5.1%)
CIE-LABlab(88.32, -7.54, 57.79)
CIE-LCHlch(88.32, 58.28, 97.44°)
OKLaboklab(89.68% -0.0239 0.1348)
OKLCHoklch(89.68% 0.137 100.1)
XYZxyz(65.7147, 72.7379, 24.7627)
Luminance0.7274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF6C #6C7FF2
analogous
#F29C6C #F2DF6C #C2F26C
triadic
#F2DF6C #6CF2DF #DF6CF2
tetradic
#F2DF6C #6CF29C #6C7FF2 #F26CC2
square
#F2DF6C #6CF29C #6C7FF2 #F26CC2
split-complementary
#F2DF6C #6CC2F2 #9C6CF2
monochromatic
#D1B612 #EDD334 #F2DF6C #F7EBA4 #FCF7DC

Accessibility & contrast

On white

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

On black

15.55
#F2DF6C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF6C
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF6C#FFFFFF#000000##000000
##F2DF6C1.001.3515.5515.55
#FFFFFF1.351.0021.0021.00
#00000015.5521.001.001.00
##00000015.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D961
Deuteranopia (green-blind)
#F7E171
Tritanopia (blue-blind)
#FFD1C5
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df6c;
/* rgb */ color: rgb(242, 223, 108);
/* oklch */ color: oklch(89.7% 0.137 100.1);
Tailwind
colors: {
  custom: {
    50: '#f9e899',
    500: '#f2df6c',
    950: '#000000',
  },
}
SCSS
$custom: #f2df6c;
$custom-light: #f9e899;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df6c",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 108
  },
  "hsl": {
    "h": 51.493,
    "s": 83.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.89675,
    "c": 0.1369,
    "h": 100.1
  },
  "luminance": 0.72735
}

Semantic roles & 50–950 ramp

primary
#F2DF6C
secondary
#374CCB
accent
#24E005
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2DF6C

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

Preview Lab → · Contrast checker → · Palette generator →

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