#FBEC98#FBEC98

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

Color values

HEX#FBEC98
RGBrgb(251, 236, 152)
HSLhsl(51, 93%, 79%)
HSVhsv(51, 39%, 98%)
CMYKcmyk(0%, 6%, 39.4%, 1.6%)
CIE-LABlab(92.91, -6.50, 42.54)
CIE-LCHlch(92.91, 43.03, 98.69°)
OKLaboklab(93.67% -0.0171 0.1041)
OKLCHoklch(93.67% 0.105 99.4)
XYZxyz(75.4481, 82.7694, 41.7014)
Luminance0.8277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBEC98 #98A7FB
analogous
#FBBB98 #FBEC98 #D9FB98
triadic
#FBEC98 #98FBEC #EC98FB
tetradic
#FBEC98 #98FBBB #98A7FB #FB98D9
square
#FBEC98 #98FBBB #98A7FB #FB98D9
split-complementary
#FBEC98 #98D9FB #BB98FB
monochromatic
#F6D622 #F9E15D #FBEC98 #FDF7D3 #FEFAE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FBEC98#FFFFFF#000000##000000
##FBEC981.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)
#FBE792
Deuteranopia (green-blind)
#FFED9B
Tritanopia (blue-blind)
#FFE1D7
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #fbec98;
/* rgb */ color: rgb(251, 236, 152);
/* oklch */ color: oklch(93.7% 0.105 99.4);
Tailwind
colors: {
  custom: {
    50: '#fef2b7',
    500: '#fbec98',
    950: '#000000',
  },
}
SCSS
$custom: #fbec98;
$custom-light: #fef2b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbec98",
  "rgb": {
    "r": 251,
    "g": 236,
    "b": 152
  },
  "hsl": {
    "h": 50.909,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.93666,
    "c": 0.10548,
    "h": 99.4
  },
  "luminance": 0.82767
}

Semantic roles & 50–950 ramp

primary
#FBEC98
secondary
#5B6FDC
accent
#23E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FBEC98

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

Preview Lab → · Contrast checker → · Palette generator →

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