#F5EF5F#F5EF5F

#F5EF5F is a very light, vivid yellow. Relative luminance 0.820; OKLCH L 93.1% C 0.162 H 106.9°. Best body text is #000000 at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#F5EF5F
RGBrgb(245, 239, 95)
HSLhsl(58, 88%, 67%)
HSVhsv(58, 61%, 96%)
CMYKcmyk(0%, 2.4%, 61.2%, 3.9%)
CIE-LABlab(92.56, -15.15, 68.19)
CIE-LCHlch(92.56, 69.85, 102.52°)
OKLaboklab(93.07% -0.0472 0.1553)
OKLCHoklch(93.07% 0.162 106.9)
XYZxyz(70.5906, 81.9739, 22.9284)
Luminance0.8197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5EF5F #5F65F5
analogous
#F5A45F #F5EF5F #B0F55F
triadic
#F5EF5F #5FF5EF #EF5FF5
tetradic
#F5EF5F #5FF5A4 #5F65F5 #F55FB0
square
#F5EF5F #5FF5A4 #5F65F5 #F55FB0
split-complementary
#F5EF5F #5FB0F5 #A45FF5
monochromatic
#CDC50D #F1E925 #F5EF5F #F9F599 #FCFBD2

Accessibility & contrast

On white

1.21
#F5EF5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.39
#F5EF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5EF5F
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5EF5F#FFFFFF#000000##000000
##F5EF5F1.001.2117.3917.39
#FFFFFF1.211.0021.0021.00
#00000017.3921.001.001.00
##00000017.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE64E
Deuteranopia (green-blind)
#FFEC68
Tritanopia (blue-blind)
#FFE0D1
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f5ef5f;
/* rgb */ color: rgb(245, 239, 95);
/* oklch */ color: oklch(93.1% 0.162 106.9);
Tailwind
colors: {
  custom: {
    50: '#fcf492',
    500: '#f5ef5f',
    950: '#000000',
  },
}
SCSS
$custom: #f5ef5f;
$custom-light: #fcf492;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ef5f",
  "rgb": {
    "r": 245,
    "g": 239,
    "b": 95
  },
  "hsl": {
    "h": 57.6,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.93067,
    "c": 0.16235,
    "h": 106.9
  },
  "luminance": 0.81972
}

Semantic roles & 50–950 ramp

primary
#F5EF5F
secondary
#2F36C9
accent
#0AE501
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F5EF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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