#9D8628#9D8628

#9D8628 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.113 H 94.8°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#9D8628
RGBrgb(157, 134, 40)
HSLhsl(48, 59%, 39%)
HSVhsv(48, 75%, 62%)
CMYKcmyk(0%, 14.6%, 74.5%, 38.4%)
CIE-LABlab(56.46, -1.59, 50.95)
CIE-LCHlch(56.46, 50.98, 91.79°)
OKLaboklab(62.42% -0.0095 0.1126)
OKLCHoklch(62.42% 0.113 94.8)
XYZxyz(22.8139, 24.3728, 5.5098)
Luminance0.2437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8628 #283F9D
analogous
#9D4B28 #9D8628 #799D28
triadic
#9D8628 #289D86 #86289D
tetradic
#9D8628 #289D4B #283F9D #9D2879
square
#9D8628 #289D4B #283F9D #9D2879
split-complementary
#9D8628 #28799D #4B289D
monochromatic
#3B330F #6C5C1C #9D8628 #CCAE36 #D8C267

Accessibility & contrast

On white

3.57
#9D8628 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#9D8628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8628
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8628#FFFFFF#000000##000000
##9D86281.003.575.875.87
#FFFFFF3.571.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948319
Deuteranopia (green-blind)
#9A8A2E
Tritanopia (blue-blind)
#AA7B73
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9d8628;
/* rgb */ color: rgb(157, 134, 40);
/* oklch */ color: oklch(62.4% 0.113 94.8);
Tailwind
colors: {
  custom: {
    50: '#bea869',
    500: '#9d8628',
    950: '#000000',
  },
}
SCSS
$custom: #9d8628;
$custom-light: #bea869;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8628",
  "rgb": {
    "r": 157,
    "g": 134,
    "b": 40
  },
  "hsl": {
    "h": 48.205,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.62416,
    "c": 0.11301,
    "h": 94.8
  },
  "luminance": 0.24371
}

Semantic roles & 50–950 ramp

primary
#9D8628
secondary
#6274BE
accent
#64E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9D8628

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

Preview Lab → · Contrast checker → · Palette generator →

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