#F5E97B#F5E97B

#F5E97B is a very light, vivid yellow. Relative luminance 0.791; OKLCH L 92.1% C 0.132 H 103.1°. Best body text is #000000 at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#F5E97B
RGBrgb(245, 233, 123)
HSLhsl(54, 86%, 72%)
HSVhsv(54, 50%, 96%)
CMYKcmyk(0%, 4.9%, 49.8%, 3.9%)
CIE-LABlab(91.29, -10.12, 54.41)
CIE-LCHlch(91.29, 55.34, 100.54°)
OKLaboklab(92.14% -0.0299 0.1289)
OKLCHoklch(92.14% 0.132 103.1)
XYZxyz(70.3722, 79.1226, 30.3003)
Luminance0.7912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E97B #7B87F5
analogous
#F5AC7B #F5E97B #C4F57B
triadic
#F5E97B #7BF5E9 #E97BF5
tetradic
#F5E97B #7BF5AC #7B87F5 #F57BC4
square
#F5E97B #7BF5AC #7B87F5 #F57BC4
split-complementary
#F5E97B #7BC4F5 #AC7BF5
monochromatic
#E4D011 #F1E042 #F5E97B #F9F2B4 #FDFAE3

Accessibility & contrast

On white

1.25
#F5E97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.82
#F5E97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E97B
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E97B#FFFFFF#000000##000000
##F5E97B1.001.2516.8216.82
#FFFFFF1.251.0021.0021.00
#00000016.8221.001.001.00
##00000016.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE371
Deuteranopia (green-blind)
#FEE980
Tritanopia (blue-blind)
#FFDCD0
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f5e97b;
/* rgb */ color: rgb(245, 233, 123);
/* oklch */ color: oklch(92.1% 0.132 103.1);
Tailwind
colors: {
  custom: {
    50: '#fbefa4',
    500: '#f5e97b',
    950: '#000000',
  },
}
SCSS
$custom: #f5e97b;
$custom-light: #fbefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e97b",
  "rgb": {
    "r": 245,
    "g": 233,
    "b": 123
  },
  "hsl": {
    "h": 54.098,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.92141,
    "c": 0.13227,
    "h": 103.1
  },
  "luminance": 0.7912
}

Semantic roles & 50–950 ramp

primary
#F5E97B
secondary
#4452D0
accent
#19E203
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F5E97B

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

Preview Lab → · Contrast checker → · Palette generator →

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