#FFF940#FFF940

#FFF940 is a very light, vivid yellow. Relative luminance 0.894; OKLCH L 95.7% C 0.190 H 107.6°. Best body text is #000000 at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#FFF940
RGBrgb(255, 249, 64)
HSLhsl(58, 100%, 63%)
HSVhsv(58, 75%, 100%)
CMYKcmyk(0%, 2.4%, 74.9%, 0%)
CIE-LABlab(95.74, -17.47, 82.69)
CIE-LCHlch(95.74, 84.52, 101.93°)
OKLaboklab(95.73% -0.0572 0.1807)
OKLCHoklch(95.73% 0.19 107.6)
XYZxyz(76.0442, 89.3842, 18.0967)
Luminance0.8938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF940 #4046FF
analogous
#FF9940 #FFF940 #A6FF40
triadic
#FFF940 #40FFF9 #F940FF
tetradic
#FFF940 #40FF99 #4046FF #FF40A6
square
#FFF940 #40FF99 #4046FF #FF40A6
split-complementary
#FFF940 #40A6FF #9940FF
monochromatic
#C5BE00 #FFF703 #FFF940 #FFFB7D #FFFDBA

Accessibility & contrast

On white

1.11
#FFF940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.88
#FFF940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF940
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF940#FFFFFF#000000##000000
##FFF9401.001.1118.8818.88
#FFFFFF1.111.0021.0021.00
#00000018.8821.001.001.00
##00000018.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF0E
Deuteranopia (green-blind)
#FFF64F
Tritanopia (blue-blind)
#FFE9D6
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fff940;
/* rgb */ color: rgb(255, 249, 64);
/* oklch */ color: oklch(95.7% 0.190 107.6);
Tailwind
colors: {
  custom: {
    50: '#fffa83',
    500: '#fff940',
    950: '#000000',
  },
}
SCSS
$custom: #fff940;
$custom-light: #fffa83;
$custom-dark: #000000;
JSON
{
  "hex": "#fff940",
  "rgb": {
    "r": 255,
    "g": 249,
    "b": 64
  },
  "hsl": {
    "h": 58.115,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.95729,
    "c": 0.18955,
    "h": 107.6
  },
  "luminance": 0.89382
}

Semantic roles & 50–950 ramp

primary
#FFF940
secondary
#2227C1
accent
#07E600
background
#FFFFFC
surface
#FFFFF3
border
#D7D7CD
text
#19170C
muted
#87857F

Preview Lab

Preview with #FFF940

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

Preview Lab → · Contrast checker → · Palette generator →

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