#F9F581#F9F581

#F9F581 is a very light, vivid yellow. Relative luminance 0.870; OKLCH L 95.0% C 0.138 H 107.0°. Best body text is #000000 at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#F9F581
RGBrgb(249, 245, 129)
HSLhsl(58, 91%, 74%)
HSVhsv(58, 48%, 98%)
CMYKcmyk(0%, 1.6%, 48.2%, 2.4%)
CIE-LABlab(94.75, -13.94, 55.83)
CIE-LCHlch(94.75, 57.54, 104.02°)
OKLaboklab(94.99% -0.0405 0.1324)
OKLCHoklch(94.99% 0.138 107)
XYZxyz(75.6836, 87.0315, 33.5766)
Luminance0.8703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F581 #8185F9
analogous
#F9B981 #F9F581 #C1F981
triadic
#F9F581 #81F9F5 #F581F9
tetradic
#F9F581 #81F9B9 #8185F9 #F981C1
square
#F9F581 #81F9B9 #8185F9 #F981C1
split-complementary
#F9F581 #81C1F9 #B981F9
monochromatic
#F3EC0C #F6F047 #F9F581 #FCFABB #FEFDE2

Accessibility & contrast

On white

1.14
#F9F581 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.41
#F9F581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F581
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F581#FFFFFF#000000##000000
##F9F5811.001.1418.4118.41
#FFFFFF1.141.0021.0021.00
#00000018.4121.001.001.00
##00000018.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED77
Deuteranopia (green-blind)
#FFF287
Tritanopia (blue-blind)
#FFE8DA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f9f581;
/* rgb */ color: rgb(249, 245, 129);
/* oklch */ color: oklch(95.0% 0.138 107.0);
Tailwind
colors: {
  custom: {
    50: '#fdf8a8',
    500: '#f9f581',
    950: '#000000',
  },
}
SCSS
$custom: #f9f581;
$custom-light: #fdf8a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f581",
  "rgb": {
    "r": 249,
    "g": 245,
    "b": 129
  },
  "hsl": {
    "h": 58,
    "s": 90.909,
    "l": 74.118
  },
  "oklch": {
    "l": 0.94991,
    "c": 0.13846,
    "h": 107
  },
  "luminance": 0.8703
}

Semantic roles & 50–950 ramp

primary
#F9F581
secondary
#484DD6
accent
#08E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F9F581

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

Preview Lab → · Contrast checker → · Palette generator →

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