#FCF07B#FCF07B

#FCF07B is a very light, vivid yellow. Relative luminance 0.844; OKLCH L 94.1% C 0.139 H 103.4°. Best body text is #000000 at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#FCF07B
RGBrgb(252, 240, 123)
HSLhsl(54, 96%, 74%)
HSVhsv(54, 51%, 99%)
CMYKcmyk(0%, 4.8%, 51.2%, 1.2%)
CIE-LABlab(93.64, -10.81, 57.34)
CIE-LCHlch(93.64, 58.35, 100.68°)
OKLaboklab(94.15% -0.0323 0.1352)
OKLCHoklch(94.15% 0.139 103.4)
XYZxyz(74.8823, 84.4481, 31.0907)
Luminance0.8445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF07B #7B87FC
analogous
#FCAF7B #FCF07B #C7FC7B
triadic
#FCF07B #7BFCF0 #F07BFC
tetradic
#FCF07B #7BFCAF #7B87FC #FC7BC7
square
#FCF07B #7BFCAF #7B87FC #FC7BC7
split-complementary
#FCF07B #7BC7FC #AF7BFC
monochromatic
#F7E106 #FBE93F #FCF07B #FDF7B7 #FEFCE1

Accessibility & contrast

On white

1.17
#FCF07B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.89
#FCF07B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF07B
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF07B#FFFFFF#000000##000000
##FCF07B1.001.1717.8917.89
#FFFFFF1.171.0021.0021.00
#00000017.8921.001.001.00
##00000017.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE970
Deuteranopia (green-blind)
#FFF081
Tritanopia (blue-blind)
#FFE2D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fcf07b;
/* rgb */ color: rgb(252, 240, 123);
/* oklch */ color: oklch(94.1% 0.139 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff4a4',
    500: '#fcf07b',
    950: '#000000',
  },
}
SCSS
$custom: #fcf07b;
$custom-light: #fff4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf07b",
  "rgb": {
    "r": 252,
    "g": 240,
    "b": 123
  },
  "hsl": {
    "h": 54.419,
    "s": 95.556,
    "l": 73.529
  },
  "oklch": {
    "l": 0.94148,
    "c": 0.13895,
    "h": 103.4
  },
  "luminance": 0.84446
}

Semantic roles & 50–950 ramp

primary
#FCF07B
secondary
#4250D9
accent
#15E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FCF07B

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

Preview Lab → · Contrast checker → · Palette generator →

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