#9F8923#9F8923

#9F8923 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.118 H 96.3°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9F8923
RGBrgb(159, 137, 35)
HSLhsl(49, 64%, 38%)
HSVhsv(49, 78%, 62%)
CMYKcmyk(0%, 13.8%, 78%, 37.6%)
CIE-LABlab(57.45, -2.55, 53.84)
CIE-LCHlch(57.45, 53.91, 92.72°)
OKLaboklab(63.24% -0.0129 0.1177)
OKLCHoklch(63.24% 0.118 96.3)
XYZxyz(23.5484, 25.3849, 5.2492)
Luminance0.2538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8923 #23399F
analogous
#9F4B23 #9F8923 #779F23
triadic
#9F8923 #239F89 #89239F
tetradic
#9F8923 #239F4B #23399F #9F2377
square
#9F8923 #239F4B #23399F #9F2377
split-complementary
#9F8923 #23779F #4B239F
monochromatic
#3B330D #6D5E18 #9F8923 #D1B42E #DCC660

Accessibility & contrast

On white

3.46
#9F8923 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9F8923 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8923
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8923#FFFFFF#000000##000000
##9F89231.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860E
Deuteranopia (green-blind)
#9D8D2A
Tritanopia (blue-blind)
#AC7E76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9f8923;
/* rgb */ color: rgb(159, 137, 35);
/* oklch */ color: oklch(63.2% 0.118 96.3);
Tailwind
colors: {
  custom: {
    50: '#bfab66',
    500: '#9f8923',
    950: '#000000',
  },
}
SCSS
$custom: #9f8923;
$custom-light: #bfab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8923",
  "rgb": {
    "r": 159,
    "g": 137,
    "b": 35
  },
  "hsl": {
    "h": 49.355,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63235,
    "c": 0.11836,
    "h": 96.3
  },
  "luminance": 0.25384
}

Semantic roles & 50–950 ramp

primary
#9F8923
secondary
#5D6FC1
accent
#5EE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8923

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

Preview Lab → · Contrast checker → · Palette generator →

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