#FBEC97#FBEC97

#FBEC97 is a very light, moderate yellow. Relative luminance 0.827; OKLCH L 93.7% C 0.107 H 99.5°. Best body text is #000000 at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#FBEC97
RGBrgb(251, 236, 151)
HSLhsl(51, 93%, 79%)
HSVhsv(51, 40%, 98%)
CMYKcmyk(0%, 6%, 39.8%, 1.6%)
CIE-LABlab(92.90, -6.60, 43.02)
CIE-LCHlch(92.90, 43.52, 98.73°)
OKLaboklab(93.65% -0.0175 0.1051)
OKLCHoklch(93.65% 0.107 99.5)
XYZxyz(75.3665, 82.7368, 41.2719)
Luminance0.8274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBEC97 #97A6FB
analogous
#FBBA97 #FBEC97 #D8FB97
triadic
#FBEC97 #97FBEC #EC97FB
tetradic
#FBEC97 #97FBBA #97A6FB #FB97D8
square
#FBEC97 #97FBBA #97A6FB #FB97D8
split-complementary
#FBEC97 #97D8FB #BA97FB
monochromatic
#F6D621 #F9E15C #FBEC97 #FDF7D2 #FEFAE2

Accessibility & contrast

On white

1.20
#FBEC97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.55
#FBEC97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBEC97
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBEC97#FFFFFF#000000##000000
##FBEC971.001.2017.5517.55
#FFFFFF1.201.0021.0021.00
#00000017.5521.001.001.00
##00000017.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE791
Deuteranopia (green-blind)
#FFED9A
Tritanopia (blue-blind)
#FFE1D7
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #fbec97;
/* rgb */ color: rgb(251, 236, 151);
/* oklch */ color: oklch(93.7% 0.107 99.5);
Tailwind
colors: {
  custom: {
    50: '#fef2b6',
    500: '#fbec97',
    950: '#000000',
  },
}
SCSS
$custom: #fbec97;
$custom-light: #fef2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fbec97",
  "rgb": {
    "r": 251,
    "g": 236,
    "b": 151
  },
  "hsl": {
    "h": 51,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.9365,
    "c": 0.10657,
    "h": 99.5
  },
  "luminance": 0.82735
}

Semantic roles & 50–950 ramp

primary
#FBEC97
secondary
#5A6EDC
accent
#22E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FBEC97

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

Preview Lab → · Contrast checker → · Palette generator →

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