#9D8926#9D8926

#9D8926 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.1% C 0.116 H 97.3°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9D8926
RGBrgb(157, 137, 38)
HSLhsl(50, 61%, 38%)
HSVhsv(50, 76%, 62%)
CMYKcmyk(0%, 12.7%, 75.8%, 38.4%)
CIE-LABlab(57.27, -3.34, 52.51)
CIE-LCHlch(57.27, 52.61, 93.64°)
OKLaboklab(63.05% -0.0147 0.1155)
OKLCHoklch(63.05% 0.116 97.3)
XYZxyz(23.2013, 25.2006, 5.4755)
Luminance0.2520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8926 #263A9D
analogous
#9D4D26 #9D8926 #759D26
triadic
#9D8926 #269D89 #89269D
tetradic
#9D8926 #269D4D #263A9D #9D2675
square
#9D8926 #269D4D #263A9D #9D2675
split-complementary
#9D8926 #26759D #4D269D
monochromatic
#3A330E #6C5E1A #9D8926 #CEB433 #D9C664

Accessibility & contrast

On white

3.48
#9D8926 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#9D8926 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8926
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8926#FFFFFF#000000##000000
##9D89261.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978614
Deuteranopia (green-blind)
#9C8C2C
Tritanopia (blue-blind)
#AA7E76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8926;
/* rgb */ color: rgb(157, 137, 38);
/* oklch */ color: oklch(63.1% 0.116 97.3);
Tailwind
colors: {
  custom: {
    50: '#beab68',
    500: '#9d8926',
    950: '#000000',
  },
}
SCSS
$custom: #9d8926;
$custom-light: #beab68;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8926",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 38
  },
  "hsl": {
    "h": 49.916,
    "s": 61.026,
    "l": 38.235
  },
  "oklch": {
    "l": 0.63054,
    "c": 0.11645,
    "h": 97.3
  },
  "luminance": 0.25199
}

Semantic roles & 50–950 ramp

primary
#9D8926
secondary
#6070BF
accent
#5FE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8926

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

Preview Lab → · Contrast checker → · Palette generator →

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