#F5E47B#F5E47B

#F5E47B is a very light, vivid yellow. Relative luminance 0.763; OKLCH L 91.1% C 0.128 H 100.3°. Best body text is #000000 at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#F5E47B
RGBrgb(245, 228, 123)
HSLhsl(52, 86%, 72%)
HSVhsv(52, 50%, 96%)
CMYKcmyk(0%, 6.9%, 49.8%, 3.9%)
CIE-LABlab(90.01, -7.63, 52.88)
CIE-LCHlch(90.01, 53.43, 98.21°)
OKLaboklab(91.13% -0.0227 0.1255)
OKLCHoklch(91.13% 0.128 100.3)
XYZxyz(68.9768, 76.3318, 29.8352)
Luminance0.7633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E47B #7B8CF5
analogous
#F5A77B #F5E47B #C9F57B
triadic
#F5E47B #7BF5E4 #E47BF5
tetradic
#F5E47B #7BF5A7 #7B8CF5 #F57BC9
square
#F5E47B #7BF5A7 #7B8CF5 #F57BC9
split-complementary
#F5E47B #7BC9F5 #A77BF5
monochromatic
#E4C711 #F1D842 #F5E47B #F9F0B4 #FDF9E3

Accessibility & contrast

On white

1.29
#F5E47B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.27
#F5E47B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E47B
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E47B#FFFFFF#000000##000000
##F5E47B1.001.2916.2716.27
#FFFFFF1.291.0021.0021.00
#00000016.2721.001.001.00
##00000016.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DF72
Deuteranopia (green-blind)
#FAE580
Tritanopia (blue-blind)
#FFD7CC
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f5e47b;
/* rgb */ color: rgb(245, 228, 123);
/* oklch */ color: oklch(91.1% 0.128 100.3);
Tailwind
colors: {
  custom: {
    50: '#fbeca3',
    500: '#f5e47b',
    950: '#000000',
  },
}
SCSS
$custom: #f5e47b;
$custom-light: #fbeca3;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e47b",
  "rgb": {
    "r": 245,
    "g": 228,
    "b": 123
  },
  "hsl": {
    "h": 51.639,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.91128,
    "c": 0.12754,
    "h": 100.3
  },
  "luminance": 0.76329
}

Semantic roles & 50–950 ramp

primary
#F5E47B
secondary
#4457D0
accent
#22E203
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E47B

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

Preview Lab → · Contrast checker → · Palette generator →

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