#F5E28B#F5E28B

#F5E28B is a very light, moderate yellow. Relative luminance 0.757; OKLCH L 91.0% C 0.109 H 97.4°. Best body text is #000000 at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#F5E28B
RGBrgb(245, 226, 139)
HSLhsl(49, 84%, 75%)
HSVhsv(49, 43%, 96%)
CMYKcmyk(0%, 7.8%, 43.3%, 3.9%)
CIE-LABlab(89.71, -5.14, 44.77)
CIE-LCHlch(89.71, 45.07, 96.56°)
OKLaboklab(90.95% -0.014 0.1086)
OKLCHoklch(90.95% 0.109 97.4)
XYZxyz(69.5145, 75.6716, 35.3654)
Luminance0.7567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E28B #8B9EF5
analogous
#F5AD8B #F5E28B #D3F58B
triadic
#F5E28B #8BF5E2 #E28BF5
tetradic
#F5E28B #8BF5AD #8B9EF5 #F58BD3
square
#F5E28B #8BF5AD #8B9EF5 #F58BD3
split-complementary
#F5E28B #8BD3F5 #AD8BF5
monochromatic
#EBC61A #F0D453 #F5E28B #FAF0C3 #FDF8E3

Accessibility & contrast

On white

1.30
#F5E28B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.13
#F5E28B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E28B
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E28B#FFFFFF#000000##000000
##F5E28B1.001.3016.1316.13
#FFFFFF1.301.0021.0021.00
#00000016.1321.001.001.00
##00000016.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DE84
Deuteranopia (green-blind)
#F7E48E
Tritanopia (blue-blind)
#FFD6CD
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f5e28b;
/* rgb */ color: rgb(245, 226, 139);
/* oklch */ color: oklch(91.0% 0.109 97.4);
Tailwind
colors: {
  custom: {
    50: '#faeaae',
    500: '#f5e28b',
    950: '#000000',
  },
}
SCSS
$custom: #f5e28b;
$custom-light: #faeaae;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e28b",
  "rgb": {
    "r": 245,
    "g": 226,
    "b": 139
  },
  "hsl": {
    "h": 49.245,
    "s": 84.127,
    "l": 75.294
  },
  "oklch": {
    "l": 0.90951,
    "c": 0.10946,
    "h": 97.4
  },
  "luminance": 0.75669
}

Semantic roles & 50–950 ramp

primary
#F5E28B
secondary
#5269D2
accent
#2CE105
background
#FFFEFD
surface
#FFFDF7
border
#D7D5D0
text
#181610
muted
#868481

Preview Lab

Preview with #F5E28B

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

Preview Lab → · Contrast checker → · Palette generator →

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