#9F8A2A#9F8A2A

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

Color values

HEX#9F8A2A
RGBrgb(159, 138, 42)
HSLhsl(49, 58%, 39%)
HSVhsv(49, 74%, 62%)
CMYKcmyk(0%, 13.2%, 73.6%, 37.6%)
CIE-LABlab(57.77, -2.79, 51.50)
CIE-LCHlch(57.77, 51.58, 93.10°)
OKLaboklab(63.5% -0.0128 0.1141)
OKLCHoklch(63.5% 0.115 96.4)
XYZxyz(23.8057, 25.7163, 5.8999)
Luminance0.2571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A2A #2A3F9F
analogous
#9F502A #9F8A2A #7A9F2A
triadic
#9F8A2A #2A9F8A #8A2A9F
tetradic
#9F8A2A #2A9F50 #2A3F9F #9F2A7A
square
#9F8A2A #2A9F50 #2A3F9F #9F2A7A
split-complementary
#9F8A2A #2A7A9F #502A9F
monochromatic
#3E3610 #6F601D #9F8A2A #CBB13B #D8C56B

Accessibility & contrast

On white

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

On black

6.14
#9F8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A2A
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A2A#FFFFFF#000000##000000
##9F8A2A1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f8a2a;
/* rgb */ color: rgb(159, 138, 42);
/* oklch */ color: oklch(63.5% 0.115 96.4);
Tailwind
colors: {
  custom: {
    50: '#bfab6a',
    500: '#9f8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a2a;
$custom-light: #bfab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a2a",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 49.231,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63501,
    "c": 0.11481,
    "h": 96.4
  },
  "luminance": 0.25715
}

Semantic roles & 50–950 ramp

primary
#9F8A2A
secondary
#6676BF
accent
#62E146
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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