#FCF271#FCF271

#FCF271 is a very light, vivid yellow. Relative luminance 0.854; OKLCH L 94.4% C 0.150 H 104.8°. Best body text is #000000 at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#FCF271
RGBrgb(252, 242, 113)
HSLhsl(56, 96%, 72%)
HSVhsv(56, 55%, 99%)
CMYKcmyk(0%, 4%, 55.2%, 1.2%)
CIE-LABlab(94.05, -12.57, 62.32)
CIE-LCHlch(94.05, 63.58, 101.41°)
OKLaboklab(94.44% -0.0384 0.1449)
OKLCHoklch(94.44% 0.15 104.8)
XYZxyz(74.8800, 85.3944, 28.1580)
Luminance0.8539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF271 #717BFC
analogous
#FCAD71 #FCF271 #C1FC71
triadic
#FCF271 #71FCF2 #F271FC
tetradic
#FCF271 #71FCAD #717BFC #FC71C1
square
#FCF271 #71FCAD #717BFC #FC71C1
split-complementary
#FCF271 #71C1FC #AD71FC
monochromatic
#EEDD05 #FBED35 #FCF271 #FDF7AD #FEFCE1

Accessibility & contrast

On white

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

On black

18.08
#FCF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF271
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF271#FFFFFF#000000##000000
##FCF2711.001.1618.0818.08
#FFFFFF1.161.0021.0021.00
#00000018.0821.001.001.00
##00000018.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fcf271;
/* rgb */ color: rgb(252, 242, 113);
/* oklch */ color: oklch(94.4% 0.150 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fcf271',
    950: '#000000',
  },
}
SCSS
$custom: #fcf271;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf271",
  "rgb": {
    "r": 252,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 55.683,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.94439,
    "c": 0.1499,
    "h": 104.8
  },
  "luminance": 0.85392
}

Semantic roles & 50–950 ramp

primary
#FCF271
secondary
#3945D8
accent
#11E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FCF271

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

Preview Lab → · Contrast checker → · Palette generator →

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