#FCF278#FCF278

#FCF278 is a very light, vivid yellow. Relative luminance 0.856; OKLCH L 94.5% C 0.144 H 104.5°. Best body text is #000000 at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#FCF278
RGBrgb(252, 242, 120)
HSLhsl(55, 96%, 73%)
HSVhsv(55, 52%, 99%)
CMYKcmyk(0%, 4%, 52.4%, 1.2%)
CIE-LABlab(94.12, -12.04, 59.27)
CIE-LCHlch(94.12, 60.48, 101.48°)
OKLaboklab(94.52% -0.0361 0.1391)
OKLCHoklch(94.52% 0.144 104.5)
XYZxyz(75.2894, 85.5582, 30.3141)
Luminance0.8556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF278 #7882FC
analogous
#FCB078 #FCF278 #C4FC78
triadic
#FCF278 #78FCF2 #F278FC
tetradic
#FCF278 #78FCB0 #7882FC #FC78C4
square
#FCF278 #78FCB0 #7882FC #FC78C4
split-complementary
#FCF278 #78C4FC #B078FC
monochromatic
#F4E205 #FBEC3C #FCF278 #FDF8B4 #FEFCE1

Accessibility & contrast

On white

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

On black

18.11
#FCF278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF278
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF278#FFFFFF#000000##000000
##FCF2781.001.1618.1118.11
#FFFFFF1.161.0021.0021.00
#00000018.1121.001.001.00
##00000018.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB6C
Deuteranopia (green-blind)
#FFF17E
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fcf278;
/* rgb */ color: rgb(252, 242, 120);
/* oklch */ color: oklch(94.5% 0.144 104.5);
Tailwind
colors: {
  custom: {
    50: '#fff6a2',
    500: '#fcf278',
    950: '#000000',
  },
}
SCSS
$custom: #fcf278;
$custom-light: #fff6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf278",
  "rgb": {
    "r": 252,
    "g": 242,
    "b": 120
  },
  "hsl": {
    "h": 55.455,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.94517,
    "c": 0.14367,
    "h": 104.5
  },
  "luminance": 0.85556
}

Semantic roles & 50–950 ramp

primary
#FCF278
secondary
#3F4BD9
accent
#11E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FCF278

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

Preview Lab → · Contrast checker → · Palette generator →

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