#F2D864#F2D864

#F2D864 is a very light, vivid yellow. Relative luminance 0.689; OKLCH L 88.2% C 0.138 H 96.8°. Best body text is #000000 at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#F2D864
RGBrgb(242, 216, 100)
HSLhsl(49, 85%, 67%)
HSVhsv(49, 59%, 95%)
CMYKcmyk(0%, 10.7%, 58.7%, 5.1%)
CIE-LABlab(86.46, -4.59, 59.28)
CIE-LCHlch(86.46, 59.45, 94.43°)
OKLaboklab(88.17% -0.0163 0.1371)
OKLCHoklch(88.17% 0.138 96.8)
XYZxyz(63.4766, 68.9120, 22.0119)
Luminance0.6891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D864 #647EF2
analogous
#F29164 #F2D864 #C5F264
triadic
#F2D864 #64F2D8 #D864F2
tetradic
#F2D864 #64F291 #647EF2 #F264C5
square
#F2D864 #64F291 #647EF2 #F264C5
split-complementary
#F2D864 #64C5F2 #9164F2
monochromatic
#CBA911 #EDCA2C #F2D864 #F7E69C #FBF4D5

Accessibility & contrast

On white

1.42
#F2D864 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.78
#F2D864 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D864
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D864#FFFFFF#000000##000000
##F2D8641.001.4214.7814.78
#FFFFFF1.421.0021.0021.00
#00000014.7821.001.001.00
##00000014.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD358
Deuteranopia (green-blind)
#F2DC69
Tritanopia (blue-blind)
#FFCABE
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f2d864;
/* rgb */ color: rgb(242, 216, 100);
/* oklch */ color: oklch(88.2% 0.138 96.8);
Tailwind
colors: {
  custom: {
    50: '#f9e394',
    500: '#f2d864',
    950: '#000000',
  },
}
SCSS
$custom: #f2d864;
$custom-light: #f9e394;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d864",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 100
  },
  "hsl": {
    "h": 49.014,
    "s": 84.524,
    "l": 67.059
  },
  "oklch": {
    "l": 0.88174,
    "c": 0.13805,
    "h": 96.8
  },
  "luminance": 0.68909
}

Semantic roles & 50–950 ramp

primary
#F2D864
secondary
#334EC7
accent
#2DE105
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D864

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

Preview Lab → · Contrast checker → · Palette generator →

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