#9D8F2A#9D8F2A

#9D8F2A is a light, moderate yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.119 H 101.2°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9D8F2A
RGBrgb(157, 143, 42)
HSLhsl(53, 58%, 39%)
HSVhsv(53, 73%, 62%)
CMYKcmyk(0%, 8.9%, 73.2%, 38.4%)
CIE-LABlab(58.96, -6.42, 52.60)
CIE-LCHlch(58.96, 52.99, 96.96°)
OKLaboklab(64.4% -0.023 0.1165)
OKLCHoklch(64.4% 0.119 101.2)
XYZxyz(24.1461, 26.9813, 6.1261)
Luminance0.2698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F2A #2A389D
analogous
#9D562A #9D8F2A #729D2A
triadic
#9D8F2A #2A9D8F #8F2A9D
tetradic
#9D8F2A #2A9D56 #2A389D #9D2A72
square
#9D8F2A #2A9D56 #2A389D #9D2A72
split-complementary
#9D8F2A #2A729D #562A9D
monochromatic
#3C3710 #6D631D #9D8F2A #CAB93A #D7CA6A

Accessibility & contrast

On white

3.28
#9D8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#9D8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F2A
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F2A#FFFFFF#000000##000000
##9D8F2A1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B19
Deuteranopia (green-blind)
#A19031
Tritanopia (blue-blind)
#A9857B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f2a;
/* rgb */ color: rgb(157, 143, 42);
/* oklch */ color: oklch(64.4% 0.119 101.2);
Tailwind
colors: {
  custom: {
    50: '#bdaf6b',
    500: '#9d8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f2a;
$custom-light: #bdaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f2a",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 52.696,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.644,
    "c": 0.11875,
    "h": 101.2
  },
  "luminance": 0.2698
}

Semantic roles & 50–950 ramp

primary
#9D8F2A
secondary
#6570BE
accent
#5AE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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