#FBEF7B#FBEF7B

#FBEF7B is a very light, vivid yellow. Relative luminance 0.837; OKLCH L 93.9% C 0.138 H 103.4°. Best body text is #000000 at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#FBEF7B
RGBrgb(251, 239, 123)
HSLhsl(54, 94%, 73%)
HSVhsv(54, 51%, 98%)
CMYKcmyk(0%, 4.8%, 51%, 1.6%)
CIE-LABlab(93.31, -10.71, 56.93)
CIE-LCHlch(93.31, 57.93, 100.66°)
OKLaboklab(93.86% -0.0319 0.1343)
OKLCHoklch(93.86% 0.138 103.4)
XYZxyz(74.2275, 83.6747, 30.9759)
Luminance0.8367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBEF7B #7B87FB
analogous
#FBAF7B #FBEF7B #C7FB7B
triadic
#FBEF7B #7BFBEF #EF7BFB
tetradic
#FBEF7B #7BFBAF #7B87FB #FB7BC7
square
#FBEF7B #7BFBAF #7B87FB #FB7BC7
split-complementary
#FBEF7B #7BC7FB #AF7BFB
monochromatic
#F4DE07 #F9E840 #FBEF7B #FDF6B6 #FEFBE1

Accessibility & contrast

On white

1.18
#FBEF7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.73
#FBEF7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBEF7B
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBEF7B#FFFFFF#000000##000000
##FBEF7B1.001.1817.7317.73
#FFFFFF1.181.0021.0021.00
#00000017.7321.001.001.00
##00000017.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE870
Deuteranopia (green-blind)
#FFEF80
Tritanopia (blue-blind)
#FFE2D4
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #fbef7b;
/* rgb */ color: rgb(251, 239, 123);
/* oklch */ color: oklch(93.9% 0.138 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff4a4',
    500: '#fbef7b',
    950: '#000000',
  },
}
SCSS
$custom: #fbef7b;
$custom-light: #fff4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#fbef7b",
  "rgb": {
    "r": 251,
    "g": 239,
    "b": 123
  },
  "hsl": {
    "h": 54.375,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.93861,
    "c": 0.138,
    "h": 103.4
  },
  "luminance": 0.83672
}

Semantic roles & 50–950 ramp

primary
#FBEF7B
secondary
#4250D8
accent
#16E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FBEF7B

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

Preview Lab → · Contrast checker → · Palette generator →

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