#F5E77B#F5E77B

#F5E77B is a very light, vivid yellow. Relative luminance 0.780; OKLCH L 91.7% C 0.130 H 102.0°. Best body text is #000000 at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#F5E77B
RGBrgb(245, 231, 123)
HSLhsl(53, 86%, 72%)
HSVhsv(53, 50%, 96%)
CMYKcmyk(0%, 5.7%, 49.8%, 3.9%)
CIE-LABlab(90.78, -9.13, 53.80)
CIE-LCHlch(90.78, 54.57, 99.63°)
OKLaboklab(91.74% -0.027 0.1275)
OKLCHoklch(91.74% 0.13 102)
XYZxyz(69.8093, 77.9967, 30.1126)
Luminance0.7799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E77B #7B89F5
analogous
#F5AA7B #F5E77B #C6F57B
triadic
#F5E77B #7BF5E7 #E77BF5
tetradic
#F5E77B #7BF5AA #7B89F5 #F57BC6
square
#F5E77B #7BF5AA #7B89F5 #F57BC6
split-complementary
#F5E77B #7BC6F5 #AA7BF5
monochromatic
#E4CC11 #F1DD42 #F5E77B #F9F1B4 #FDFAE3

Accessibility & contrast

On white

1.27
#F5E77B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.60
#F5E77B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E77B
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E77B#FFFFFF#000000##000000
##F5E77B1.001.2716.6016.60
#FFFFFF1.271.0021.0021.00
#00000016.6021.001.001.00
##00000016.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E171
Deuteranopia (green-blind)
#FDE780
Tritanopia (blue-blind)
#FFDACE
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e77b;
/* rgb */ color: rgb(245, 231, 123);
/* oklch */ color: oklch(91.7% 0.130 102.0);
Tailwind
colors: {
  custom: {
    50: '#fbeea3',
    500: '#f5e77b',
    950: '#000000',
  },
}
SCSS
$custom: #f5e77b;
$custom-light: #fbeea3;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e77b",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 123
  },
  "hsl": {
    "h": 53.115,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.91735,
    "c": 0.13035,
    "h": 102
  },
  "luminance": 0.77994
}

Semantic roles & 50–950 ramp

primary
#F5E77B
secondary
#4454D0
accent
#1DE203
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E77B

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

Preview Lab → · Contrast checker → · Palette generator →

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