#9F9823#9F9823

#9F9823 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.5% C 0.131 H 105.9°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F9823
RGBrgb(159, 152, 35)
HSLhsl(57, 64%, 38%)
HSVhsv(57, 78%, 62%)
CMYKcmyk(0%, 4.4%, 78%, 37.6%)
CIE-LABlab(61.61, -10.66, 57.66)
CIE-LCHlch(61.61, 58.64, 100.47°)
OKLaboklab(66.54% -0.0358 0.1258)
OKLCHoklch(66.54% 0.131 105.9)
XYZxyz(25.8308, 29.9497, 6.0100)
Luminance0.2995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9823 #232A9F
analogous
#9F5A23 #9F9823 #689F23
triadic
#9F9823 #239F98 #98239F
tetradic
#9F9823 #239F5A #232A9F #9F2368
square
#9F9823 #239F5A #232A9F #9F2368
split-complementary
#9F9823 #23689F #5A239F
monochromatic
#3B380D #6D6818 #9F9823 #D1C82E #DCD560

Accessibility & contrast

On white

3.00
#9F9823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#9F9823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9823
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9823#FFFFFF#000000##000000
##9F98231.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69204
Deuteranopia (green-blind)
#A8972C
Tritanopia (blue-blind)
#AB8D82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9f9823;
/* rgb */ color: rgb(159, 152, 35);
/* oklch */ color: oklch(66.5% 0.131 105.9);
Tailwind
colors: {
  custom: {
    50: '#bfb668',
    500: '#9f9823',
    950: '#000000',
  },
}
SCSS
$custom: #9f9823;
$custom-light: #bfb668;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9823",
  "rgb": {
    "r": 159,
    "g": 152,
    "b": 35
  },
  "hsl": {
    "h": 56.613,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.66541,
    "c": 0.13079,
    "h": 105.9
  },
  "luminance": 0.29949
}

Semantic roles & 50–950 ramp

primary
#9F9823
secondary
#5D62C1
accent
#4AE741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9823

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

Preview Lab → · Contrast checker → · Palette generator →

#9F9823 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva