#F5E28A#F5E28A

#F5E28A is a very light, moderate yellow. Relative luminance 0.756; OKLCH L 90.9% C 0.111 H 97.5°. Best body text is #000000 at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#F5E28A
RGBrgb(245, 226, 138)
HSLhsl(49, 84%, 75%)
HSVhsv(49, 44%, 96%)
CMYKcmyk(0%, 7.8%, 43.7%, 3.9%)
CIE-LABlab(89.69, -5.24, 45.25)
CIE-LCHlch(89.69, 45.55, 96.61°)
OKLaboklab(90.94% -0.0144 0.1096)
OKLCHoklch(90.94% 0.111 97.5)
XYZxyz(69.4417, 75.6426, 34.9824)
Luminance0.7564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E28A #8A9DF5
analogous
#F5AD8A #F5E28A #D2F58A
triadic
#F5E28A #8AF5E2 #E28AF5
tetradic
#F5E28A #8AF5AD #8A9DF5 #F58AD2
square
#F5E28A #8AF5AD #8A9DF5 #F58AD2
split-complementary
#F5E28A #8AD2F5 #AD8AF5
monochromatic
#EBC619 #F0D452 #F5E28A #FAF0C2 #FDF8E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F5E28A#FFFFFF#000000##000000
##F5E28A1.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)
#F2DE83
Deuteranopia (green-blind)
#F7E48D
Tritanopia (blue-blind)
#FFD6CD
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f5e28a;
/* rgb */ color: rgb(245, 226, 138);
/* oklch */ color: oklch(90.9% 0.111 97.5);
Tailwind
colors: {
  custom: {
    50: '#faeaad',
    500: '#f5e28a',
    950: '#000000',
  },
}
SCSS
$custom: #f5e28a;
$custom-light: #faeaad;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e28a",
  "rgb": {
    "r": 245,
    "g": 226,
    "b": 138
  },
  "hsl": {
    "h": 49.346,
    "s": 84.252,
    "l": 75.098
  },
  "oklch": {
    "l": 0.90936,
    "c": 0.11051,
    "h": 97.5
  },
  "luminance": 0.7564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F5E28A

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

Preview Lab → · Contrast checker → · Palette generator →

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