#9D8F33#9D8F33

#9D8F33 is a light, moderate yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.112 H 100.6°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9D8F33
RGBrgb(157, 143, 51)
HSLhsl(52, 51%, 41%)
HSVhsv(52, 68%, 62%)
CMYKcmyk(0%, 8.9%, 67.5%, 38.4%)
CIE-LABlab(59.02, -5.92, 48.96)
CIE-LCHlch(59.02, 49.31, 96.90°)
OKLaboklab(64.47% -0.0206 0.1104)
OKLCHoklch(64.47% 0.112 100.6)
XYZxyz(24.3257, 27.0531, 7.0718)
Luminance0.2705 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F33 #33419D
analogous
#9D5A33 #9D8F33 #769D33
triadic
#9D8F33 #339D8F #8F339D
tetradic
#9D8F33 #339D5A #33419D #9D3376
square
#9D8F33 #339D5A #33419D #9D3376
split-complementary
#9D8F33 #33769D #5A339D
monochromatic
#413B15 #6F6524 #9D8F33 #C4B449 #D3C777

Accessibility & contrast

On white

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

On black

6.41
#9D8F33 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F33
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F33#FFFFFF#000000##000000
##9D8F331.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8B27
Deuteranopia (green-blind)
#A09038
Tritanopia (blue-blind)
#A9857C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f33;
/* rgb */ color: rgb(157, 143, 51);
/* oklch */ color: oklch(64.5% 0.112 100.6);
Tailwind
colors: {
  custom: {
    50: '#bdaf70',
    500: '#9d8f33',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f33;
$custom-light: #bdaf70;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f33",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 51
  },
  "hsl": {
    "h": 52.075,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.64474,
    "c": 0.11233,
    "h": 100.6
  },
  "luminance": 0.27052
}

Semantic roles & 50–950 ramp

primary
#9D8F33
secondary
#707ABB
accent
#60DA4D
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121008
muted
#817F7B

Preview Lab

Preview with #9D8F33

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

Preview Lab → · Contrast checker → · Palette generator →

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