#9D8D30#9D8D30

#9D8D30 is a light, moderate yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.113 H 99.4°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9D8D30
RGBrgb(157, 141, 48)
HSLhsl(51, 53%, 40%)
HSVhsv(51, 69%, 62%)
CMYKcmyk(0%, 10.2%, 69.4%, 38.4%)
CIE-LABlab(58.45, -5.01, 49.65)
CIE-LCHlch(58.45, 49.90, 95.77°)
OKLaboklab(64.01% -0.0184 0.1114)
OKLCHoklch(64.01% 0.113 99.4)
XYZxyz(23.9641, 26.4324, 6.6354)
Luminance0.2643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D30 #30409D
analogous
#9D5730 #9D8D30 #769D30
triadic
#9D8D30 #309D8D #8D309D
tetradic
#9D8D30 #309D57 #30409D #9D3076
square
#9D8D30 #309D57 #30409D #9D3076
split-complementary
#9D8D30 #30769D #57309D
monochromatic
#3F3913 #6E6322 #9D8D30 #C6B344 #D4C673

Accessibility & contrast

On white

3.34
#9D8D30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#9D8D30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D30
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D30#FFFFFF#000000##000000
##9D8D301.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8923
Deuteranopia (green-blind)
#9F8F35
Tritanopia (blue-blind)
#A9837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8d30;
/* rgb */ color: rgb(157, 141, 48);
/* oklch */ color: oklch(64.0% 0.113 99.4);
Tailwind
colors: {
  custom: {
    50: '#bdae6e',
    500: '#9d8d30',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d30;
$custom-light: #bdae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d30",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 48
  },
  "hsl": {
    "h": 51.193,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64007,
    "c": 0.11287,
    "h": 99.4
  },
  "luminance": 0.26431
}

Semantic roles & 50–950 ramp

primary
#9D8D30
secondary
#6D78BC
accent
#61DD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8D30

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

Preview Lab → · Contrast checker → · Palette generator →

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