#FBEF98#FBEF98

#FBEF98 is a very light, moderate yellow. Relative luminance 0.845; OKLCH L 94.3% C 0.108 H 101.4°. Best body text is #000000 at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#FBEF98
RGBrgb(251, 239, 152)
HSLhsl(53, 93%, 79%)
HSVhsv(53, 39%, 98%)
CMYKcmyk(0%, 4.8%, 39.4%, 1.6%)
CIE-LABlab(93.67, -7.99, 43.51)
CIE-LCHlch(93.67, 44.24, 100.41°)
OKLaboklab(94.27% -0.0215 0.1063)
OKLCHoklch(94.27% 0.108 101.4)
XYZxyz(76.3191, 84.5114, 41.9917)
Luminance0.8451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBEF98 #98A4FB
analogous
#FBBE98 #FBEF98 #D6FB98
triadic
#FBEF98 #98FBEF #EF98FB
tetradic
#FBEF98 #98FBBE #98A4FB #FB98D6
square
#FBEF98 #98FBBE #98A4FB #FB98D6
split-complementary
#FBEF98 #98D6FB #BE98FB
monochromatic
#F6DD22 #F9E65D #FBEF98 #FDF8D3 #FEFAE2

Accessibility & contrast

On white

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

On black

17.90
#FBEF98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBEF98
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBEF98#FFFFFF#000000##000000
##FBEF981.001.1717.9017.90
#FFFFFF1.171.0021.0021.00
#00000017.9021.001.001.00
##00000017.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEEA91
Deuteranopia (green-blind)
#FFEF9B
Tritanopia (blue-blind)
#FFE4D9
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fbef98;
/* rgb */ color: rgb(251, 239, 152);
/* oklch */ color: oklch(94.3% 0.108 101.4);
Tailwind
colors: {
  custom: {
    50: '#fef4b7',
    500: '#fbef98',
    950: '#000000',
  },
}
SCSS
$custom: #fbef98;
$custom-light: #fef4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbef98",
  "rgb": {
    "r": 251,
    "g": 239,
    "b": 152
  },
  "hsl": {
    "h": 52.727,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.94267,
    "c": 0.10845,
    "h": 101.4
  },
  "luminance": 0.84509
}

Semantic roles & 50–950 ramp

primary
#FBEF98
secondary
#5B6BDC
accent
#1CE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FBEF98

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

Preview Lab → · Contrast checker → · Palette generator →

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