#F5EC7B#F5EC7B

#F5EC7B is a very light, vivid yellow. Relative luminance 0.808; OKLCH L 92.8% C 0.135 H 104.6°. Best body text is #000000 at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#F5EC7B
RGBrgb(245, 236, 123)
HSLhsl(56, 86%, 72%)
HSVhsv(56, 50%, 96%)
CMYKcmyk(0%, 3.7%, 49.8%, 3.9%)
CIE-LABlab(92.06, -11.61, 55.32)
CIE-LCHlch(92.06, 56.53, 101.85°)
OKLaboklab(92.75% -0.0342 0.1309)
OKLCHoklch(92.75% 0.135 104.6)
XYZxyz(71.2287, 80.8356, 30.5858)
Luminance0.8083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5EC7B #7B84F5
analogous
#F5AF7B #F5EC7B #C1F57B
triadic
#F5EC7B #7BF5EC #EC7BF5
tetradic
#F5EC7B #7BF5AF #7B84F5 #F57BC1
square
#F5EC7B #7BF5AF #7B84F5 #F57BC1
split-complementary
#F5EC7B #7BC1F5 #AF7BF5
monochromatic
#E4D511 #F1E442 #F5EC7B #F9F4B4 #FDFBE3

Accessibility & contrast

On white

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

On black

17.17
#F5EC7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5EC7B
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5EC7B#FFFFFF#000000##000000
##F5EC7B1.001.2217.1717.17
#FFFFFF1.221.0021.0021.00
#00000017.1721.001.001.00
##00000017.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE571
Deuteranopia (green-blind)
#FFEB80
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f5ec7b;
/* rgb */ color: rgb(245, 236, 123);
/* oklch */ color: oklch(92.8% 0.135 104.6);
Tailwind
colors: {
  custom: {
    50: '#fbf1a4',
    500: '#f5ec7b',
    950: '#000000',
  },
}
SCSS
$custom: #f5ec7b;
$custom-light: #fbf1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ec7b",
  "rgb": {
    "r": 245,
    "g": 236,
    "b": 123
  },
  "hsl": {
    "h": 55.574,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.92751,
    "c": 0.13524,
    "h": 104.6
  },
  "luminance": 0.80833
}

Semantic roles & 50–950 ramp

primary
#F5EC7B
secondary
#444ED0
accent
#14E203
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F5EC7B

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

Preview Lab → · Contrast checker → · Palette generator →

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