#FFF240#FFF240

#FFF240 is a very light, vivid yellow. Relative luminance 0.851; OKLCH L 94.3% C 0.183 H 105.1°. Best body text is #000000 at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#FFF240
RGBrgb(255, 242, 64)
HSLhsl(56, 100%, 63%)
HSVhsv(56, 75%, 100%)
CMYKcmyk(0%, 5.1%, 74.9%, 0%)
CIE-LABlab(93.94, -14.08, 81.05)
CIE-LCHlch(93.94, 82.26, 99.85°)
OKLaboklab(94.3% -0.0477 0.1772)
OKLCHoklch(94.3% 0.184 105.1)
XYZxyz(73.9207, 85.1373, 17.3889)
Luminance0.8513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF240 #404DFF
analogous
#FF9240 #FFF240 #ADFF40
triadic
#FFF240 #40FFF2 #F240FF
tetradic
#FFF240 #40FF92 #404DFF #FF40AD
square
#FFF240 #40FF92 #404DFF #FF40AD
split-complementary
#FFF240 #40ADFF #9240FF
monochromatic
#C5B700 #FFEE03 #FFF240 #FFF67D #FFFABA

Accessibility & contrast

On white

1.16
#FFF240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.03
#FFF240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF240
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF240#FFFFFF#000000##000000
##FFF2401.001.1618.0318.03
#FFFFFF1.161.0021.0021.00
#00000018.0321.001.001.00
##00000018.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE915
Deuteranopia (green-blind)
#FFF14E
Tritanopia (blue-blind)
#FFE1D1
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fff240;
/* rgb */ color: rgb(255, 242, 64);
/* oklch */ color: oklch(94.3% 0.183 105.1);
Tailwind
colors: {
  custom: {
    50: '#fff682',
    500: '#fff240',
    950: '#000000',
  },
}
SCSS
$custom: #fff240;
$custom-light: #fff682;
$custom-dark: #000000;
JSON
{
  "hex": "#fff240",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 64
  },
  "hsl": {
    "h": 55.916,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.94296,
    "c": 0.1835,
    "h": 105.1
  },
  "luminance": 0.85134
}

Semantic roles & 50–950 ramp

primary
#FFF240
secondary
#222DC1
accent
#10E600
background
#FFFFFC
surface
#FFFEF3
border
#D7D6CD
text
#19170C
muted
#87857F

Preview Lab

Preview with #FFF240

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

Preview Lab → · Contrast checker → · Palette generator →

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