#F9F381#F9F381

#F9F381 is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.6% C 0.136 H 106.0°. Best body text is #000000 at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#F9F381
RGBrgb(249, 243, 129)
HSLhsl(57, 91%, 74%)
HSVhsv(57, 48%, 98%)
CMYKcmyk(0%, 2.4%, 48.2%, 2.4%)
CIE-LABlab(94.24, -12.96, 55.22)
CIE-LCHlch(94.24, 56.72, 103.21°)
OKLaboklab(94.58% -0.0377 0.1311)
OKLCHoklch(94.58% 0.136 106)
XYZxyz(75.0818, 85.8280, 33.3760)
Luminance0.8583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F381 #8187F9
analogous
#F9B781 #F9F381 #C3F981
triadic
#F9F381 #81F9F3 #F381F9
tetradic
#F9F381 #81F9B7 #8187F9 #F981C3
square
#F9F381 #81F9B7 #8187F9 #F981C3
split-complementary
#F9F381 #81C3F9 #B781F9
monochromatic
#F3E80C #F6ED47 #F9F381 #FCF9BB #FEFCE2

Accessibility & contrast

On white

1.16
#F9F381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.17
#F9F381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F381
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F381#FFFFFF#000000##000000
##F9F3811.001.1618.1718.17
#FFFFFF1.161.0021.0021.00
#00000018.1721.001.001.00
##00000018.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC77
Deuteranopia (green-blind)
#FFF186
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f9f381;
/* rgb */ color: rgb(249, 243, 129);
/* oklch */ color: oklch(94.6% 0.136 106.0);
Tailwind
colors: {
  custom: {
    50: '#fdf6a8',
    500: '#f9f381',
    950: '#000000',
  },
}
SCSS
$custom: #f9f381;
$custom-light: #fdf6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f381",
  "rgb": {
    "r": 249,
    "g": 243,
    "b": 129
  },
  "hsl": {
    "h": 57,
    "s": 90.909,
    "l": 74.118
  },
  "oklch": {
    "l": 0.94583,
    "c": 0.13636,
    "h": 106
  },
  "luminance": 0.85826
}

Semantic roles & 50–950 ramp

primary
#F9F381
secondary
#484FD6
accent
#0BE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F9F381

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

Preview Lab → · Contrast checker → · Palette generator →

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