#9F8A2C#9F8A2C

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

Color values

HEX#9F8A2C
RGBrgb(159, 138, 44)
HSLhsl(49, 57%, 40%)
HSVhsv(49, 72%, 62%)
CMYKcmyk(0%, 13.2%, 72.3%, 37.6%)
CIE-LABlab(57.78, -2.68, 50.71)
CIE-LCHlch(57.78, 50.78, 93.03°)
OKLaboklab(63.52% -0.0123 0.1128)
OKLCHoklch(63.52% 0.113 96.2)
XYZxyz(23.8424, 25.7310, 6.0931)
Luminance0.2573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A2C #2C419F
analogous
#9F502C #9F8A2C #7B9F2C
triadic
#9F8A2C #2C9F8A #8A2C9F
tetradic
#9F8A2C #2C9F50 #2C419F #9F2C7B
square
#9F8A2C #2C9F50 #2C419F #9F2C7B
split-complementary
#9F8A2C #2C7B9F #502C9F
monochromatic
#3F3711 #6F601F #9F8A2C #CAB03E #D7C46E

Accessibility & contrast

On white

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

On black

6.15
#9F8A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A2C
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A2C#FFFFFF#000000##000000
##9F8A2C1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871E
Deuteranopia (green-blind)
#9E8E31
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a2c;
/* rgb */ color: rgb(159, 138, 44);
/* oklch */ color: oklch(63.5% 0.113 96.2);
Tailwind
colors: {
  custom: {
    50: '#bfab6b',
    500: '#9f8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a2c;
$custom-light: #bfab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a2c",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 49.043,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63517,
    "c": 0.11346,
    "h": 96.2
  },
  "luminance": 0.2573
}

Semantic roles & 50–950 ramp

primary
#9F8A2C
secondary
#6978BE
accent
#64E048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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