#F9D958#F9D958

#F9D958 is a very light, vivid yellow. Relative luminance 0.705; OKLCH L 88.9% C 0.149 H 95.2°. Best body text is #000000 at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#F9D958
RGBrgb(249, 217, 88)
HSLhsl(48, 93%, 66%)
HSVhsv(48, 65%, 98%)
CMYKcmyk(0%, 12.9%, 64.7%, 2.4%)
CIE-LABlab(87.23, -2.98, 65.49)
CIE-LCHlch(87.23, 65.55, 92.61°)
OKLaboklab(88.89% -0.0135 0.1485)
OKLCHoklch(88.89% 0.149 95.2)
XYZxyz(65.6443, 70.4734, 19.3757)
Luminance0.7047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9D958 #5878F9
analogous
#F98858 #F9D958 #C8F958
triadic
#F9D958 #58F9D9 #D958F9
tetradic
#F9D958 #58F988 #5878F9 #F958C8
square
#F9D958 #58F988 #5878F9 #F958C8
split-complementary
#F9D958 #58C8F9 #8858F9
monochromatic
#CFA707 #F7CC1D #F9D958 #FBE693 #FDF4CE

Accessibility & contrast

On white

1.39
#F9D958 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.09
#F9D958 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9D958
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9D958#FFFFFF#000000##000000
##F9D9581.001.3915.0915.09
#FFFFFF1.391.0021.0021.00
#00000015.0921.001.001.00
##00000015.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED548
Deuteranopia (green-blind)
#F6DF5E
Tritanopia (blue-blind)
#FFC9BE
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f9d958;
/* rgb */ color: rgb(249, 217, 88);
/* oklch */ color: oklch(88.9% 0.149 95.2);
Tailwind
colors: {
  custom: {
    50: '#ffe48d',
    500: '#f9d958',
    950: '#000000',
  },
}
SCSS
$custom: #f9d958;
$custom-light: #ffe48d;
$custom-dark: #000000;
JSON
{
  "hex": "#f9d958",
  "rgb": {
    "r": 249,
    "g": 217,
    "b": 88
  },
  "hsl": {
    "h": 48.075,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.88894,
    "c": 0.14911,
    "h": 95.2
  },
  "luminance": 0.7047
}

Semantic roles & 50–950 ramp

primary
#F9D958
secondary
#2B4ACA
accent
#2EE600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F9D958

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

Preview Lab → · Contrast checker → · Palette generator →

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