#F2DC6B#F2DC6B

#F2DC6B is a very light, vivid yellow. Relative luminance 0.711; OKLCH L 89.1% C 0.135 H 98.5°. Best body text is #000000 at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#F2DC6B
RGBrgb(242, 220, 107)
HSLhsl(50, 84%, 68%)
HSVhsv(50, 56%, 95%)
CMYKcmyk(0%, 9.1%, 55.8%, 5.1%)
CIE-LABlab(87.55, -6.11, 57.35)
CIE-LCHlch(87.55, 57.67, 96.08°)
OKLaboklab(89.06% -0.0199 0.1338)
OKLCHoklch(89.06% 0.135 98.5)
XYZxyz(64.8674, 71.1279, 24.2193)
Luminance0.7113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DC6B #6B81F2
analogous
#F2986B #F2DC6B #C4F26B
triadic
#F2DC6B #6BF2DC #DC6BF2
tetradic
#F2DC6B #6BF298 #6B81F2 #F26BC4
square
#F2DC6B #6BF298 #6B81F2 #F26BC4
split-complementary
#F2DC6B #6BC4F2 #986BF2
monochromatic
#D0B112 #EDCF33 #F2DC6B #F7E9A3 #FCF7DC

Accessibility & contrast

On white

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

On black

15.23
#F2DC6B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DC6B
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DC6B#FFFFFF#000000##000000
##F2DC6B1.001.3815.2315.23
#FFFFFF1.381.0021.0021.00
#00000015.2321.001.001.00
##00000015.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED760
Deuteranopia (green-blind)
#F4DF70
Tritanopia (blue-blind)
#FFCEC3
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f2dc6b;
/* rgb */ color: rgb(242, 220, 107);
/* oklch */ color: oklch(89.1% 0.135 98.5);
Tailwind
colors: {
  custom: {
    50: '#f9e699',
    500: '#f2dc6b',
    950: '#000000',
  },
}
SCSS
$custom: #f2dc6b;
$custom-light: #f9e699;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dc6b",
  "rgb": {
    "r": 242,
    "g": 220,
    "b": 107
  },
  "hsl": {
    "h": 50.222,
    "s": 83.851,
    "l": 68.431
  },
  "oklch": {
    "l": 0.89057,
    "c": 0.13522,
    "h": 98.5
  },
  "luminance": 0.71125
}

Semantic roles & 50–950 ramp

primary
#F2DC6B
secondary
#364FCB
accent
#29E005
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2DC6B

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

Preview Lab → · Contrast checker → · Palette generator →

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