#F5ED5C#F5ED5C

#F5ED5C is a very light, vivid yellow. Relative luminance 0.808; OKLCH L 92.6% C 0.163 H 106.1°. Best body text is #000000 at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#F5ED5C
RGBrgb(245, 237, 92)
HSLhsl(57, 88%, 66%)
HSVhsv(57, 62%, 96%)
CMYKcmyk(0%, 3.3%, 62.4%, 3.9%)
CIE-LABlab(92.02, -14.35, 68.83)
CIE-LCHlch(92.02, 70.31, 101.78°)
OKLaboklab(92.63% -0.0452 0.1563)
OKLCHoklch(92.63% 0.163 106.1)
XYZxyz(69.8746, 80.7559, 22.0299)
Luminance0.8075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5ED5C #5C64F5
analogous
#F5A05C #F5ED5C #B0F55C
triadic
#F5ED5C #5CF5ED #ED5CF5
tetradic
#F5ED5C #5CF5A0 #5C64F5 #F55CB0
square
#F5ED5C #5CF5A0 #5C64F5 #F55CB0
split-complementary
#F5ED5C #5CB0F5 #A05CF5
monochromatic
#CAC00C #F1E722 #F5ED5C #F9F396 #FCFACF

Accessibility & contrast

On white

1.22
#F5ED5C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.15
#F5ED5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5ED5C
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5ED5C#FFFFFF#000000##000000
##F5ED5C1.001.2217.1517.15
#FFFFFF1.221.0021.0021.00
#00000017.1521.001.001.00
##00000017.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE54A
Deuteranopia (green-blind)
#FFEB65
Tritanopia (blue-blind)
#FFDECF
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f5ed5c;
/* rgb */ color: rgb(245, 237, 92);
/* oklch */ color: oklch(92.6% 0.163 106.1);
Tailwind
colors: {
  custom: {
    50: '#fcf290',
    500: '#f5ed5c',
    950: '#000000',
  },
}
SCSS
$custom: #f5ed5c;
$custom-light: #fcf290;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ed5c",
  "rgb": {
    "r": 245,
    "g": 237,
    "b": 92
  },
  "hsl": {
    "h": 56.863,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.92629,
    "c": 0.1627,
    "h": 106.1
  },
  "luminance": 0.80754
}

Semantic roles & 50–950 ramp

primary
#F5ED5C
secondary
#2F37C6
accent
#0CE500
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F5ED5C

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

Preview Lab → · Contrast checker → · Palette generator →

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