#F5F97B#F5F97B

#F5F97B is a very light, vivid yellow. Relative luminance 0.886; OKLCH L 95.4% C 0.149 H 110.6°. Best body text is #000000 at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#F5F97B
RGBrgb(245, 249, 123)
HSLhsl(62, 91%, 73%)
HSVhsv(62, 51%, 98%)
CMYKcmyk(1.6%, 0%, 50.6%, 2.4%)
CIE-LABlab(95.41, -17.96, 59.28)
CIE-LCHlch(95.41, 61.94, 106.85°)
OKLaboklab(95.42% -0.0523 0.1395)
OKLCHoklch(95.42% 0.149 110.6)
XYZxyz(75.1087, 88.5955, 31.8791)
Luminance0.8859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F97B #7F7BF9
analogous
#F9BE7B #F5F97B #B6F97B
triadic
#F5F97B #7BF5F9 #F97BF5
tetradic
#F5F97B #7BF9BE #7F7BF9 #F97BB6
square
#F5F97B #7BF9BE #7F7BF9 #F97BB6
split-complementary
#F5F97B #7BB6F9 #BE7BF9
monochromatic
#E8EF0B #F1F640 #F5F97B #F9FCB6 #FDFEE2

Accessibility & contrast

On white

1.12
#F5F97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.72
#F5F97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F97B
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F97B#FFFFFF#000000##000000
##F5F97B1.001.1218.7218.72
#FFFFFF1.121.0021.0021.00
#00000018.7221.001.001.00
##00000018.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06F
Deuteranopia (green-blind)
#FFF482
Tritanopia (blue-blind)
#FFECDD
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f5f97b;
/* rgb */ color: rgb(245, 249, 123);
/* oklch */ color: oklch(95.4% 0.149 110.6);
Tailwind
colors: {
  custom: {
    50: '#fbfba4',
    500: '#f5f97b',
    950: '#000000',
  },
}
SCSS
$custom: #f5f97b;
$custom-light: #fbfba4;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f97b",
  "rgb": {
    "r": 245,
    "g": 249,
    "b": 123
  },
  "hsl": {
    "h": 61.905,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.9542,
    "c": 0.14895,
    "h": 110.6
  },
  "luminance": 0.88594
}

Semantic roles & 50–950 ramp

primary
#F5F97B
secondary
#4743D6
accent
#00E607
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F97B

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

Preview Lab → · Contrast checker → · Palette generator →

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