#9F8A23#9F8A23

#9F8A23 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.119 H 97.0°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9F8A23
RGBrgb(159, 138, 35)
HSLhsl(50, 64%, 38%)
HSVhsv(50, 78%, 62%)
CMYKcmyk(0%, 13.2%, 78%, 37.6%)
CIE-LABlab(57.72, -3.10, 54.10)
CIE-LCHlch(57.72, 54.19, 93.28°)
OKLaboklab(63.45% -0.0145 0.1182)
OKLCHoklch(63.45% 0.119 97)
XYZxyz(23.6912, 25.6705, 5.2968)
Luminance0.2567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A23 #23389F
analogous
#9F4C23 #9F8A23 #769F23
triadic
#9F8A23 #239F8A #8A239F
tetradic
#9F8A23 #239F4C #23389F #9F2376
square
#9F8A23 #239F4C #23389F #9F2376
split-complementary
#9F8A23 #23769F #4C239F
monochromatic
#3B330D #6D5E18 #9F8A23 #D1B52E #DCC760

Accessibility & contrast

On white

3.42
#9F8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9F8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A23
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A23#FFFFFF#000000##000000
##9F8A231.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870D
Deuteranopia (green-blind)
#9E8E2A
Tritanopia (blue-blind)
#AC7F76
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a23;
/* rgb */ color: rgb(159, 138, 35);
/* oklch */ color: oklch(63.5% 0.119 97.0);
Tailwind
colors: {
  custom: {
    50: '#bfab67',
    500: '#9f8a23',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a23;
$custom-light: #bfab67;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a23",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 49.839,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63452,
    "c": 0.11907,
    "h": 97
  },
  "luminance": 0.25669
}

Semantic roles & 50–950 ramp

primary
#9F8A23
secondary
#5D6EC1
accent
#5DE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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