#F2D960#F2D960

#F2D960 is a very light, vivid yellow. Relative luminance 0.693; OKLCH L 88.3% C 0.142 H 97.7°. Best body text is #000000 at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#F2D960
RGBrgb(242, 217, 96)
HSLhsl(50, 85%, 66%)
HSVhsv(50, 60%, 95%)
CMYKcmyk(0%, 10.3%, 60.3%, 5.1%)
CIE-LABlab(86.68, -5.37, 61.29)
CIE-LCHlch(86.68, 61.52, 95.01°)
OKLaboklab(88.33% -0.019 0.1409)
OKLCHoklch(88.33% 0.142 97.7)
XYZxyz(63.5447, 69.3503, 21.1029)
Luminance0.6935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D960 #6079F2
analogous
#F29060 #F2D960 #C2F260
triadic
#F2D960 #60F2D9 #D960F2
tetradic
#F2D960 #60F290 #6079F2 #F260C2
square
#F2D960 #60F290 #6079F2 #F260C2
split-complementary
#F2D960 #60C2F2 #9060F2
monochromatic
#C7A810 #EDCB27 #F2D960 #F7E799 #FBF4D1

Accessibility & contrast

On white

1.41
#F2D960 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.87
#F2D960 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D960
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D960#FFFFFF#000000##000000
##F2D9601.001.4114.8714.87
#FFFFFF1.411.0021.0021.00
#00000014.8721.001.001.00
##00000014.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD453
Deuteranopia (green-blind)
#F3DD66
Tritanopia (blue-blind)
#FFCABF
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d960;
/* rgb */ color: rgb(242, 217, 96);
/* oklch */ color: oklch(88.3% 0.142 97.7);
Tailwind
colors: {
  custom: {
    50: '#f9e491',
    500: '#f2d960',
    950: '#000000',
  },
}
SCSS
$custom: #f2d960;
$custom-light: #f9e491;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d960",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 96
  },
  "hsl": {
    "h": 49.726,
    "s": 84.884,
    "l": 66.275
  },
  "oklch": {
    "l": 0.88334,
    "c": 0.14216,
    "h": 97.7
  },
  "luminance": 0.69347
}

Semantic roles & 50–950 ramp

primary
#F2D960
secondary
#324BC4
accent
#2AE104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D960

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

Preview Lab → · Contrast checker → · Palette generator →

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