#9C8D38#9C8D38

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

Color values

HEX#9C8D38
RGBrgb(156, 141, 56)
HSLhsl(51, 47%, 42%)
HSVhsv(51, 64%, 61%)
CMYKcmyk(0%, 9.6%, 64.1%, 38.8%)
CIE-LABlab(58.42, -4.96, 46.05)
CIE-LCHlch(58.42, 46.32, 96.15°)
OKLaboklab(63.99% -0.0172 0.1051)
OKLCHoklch(63.99% 0.106 99.3)
XYZxyz(23.9500, 26.4042, 7.5756)
Luminance0.2640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8D38 #38479C
analogous
#9C5B38 #9C8D38 #799C38
triadic
#9C8D38 #389C8D #8D389C
tetradic
#9C8D38 #389C5B #38479C #9C3879
square
#9C8D38 #389C5B #38479C #9C3879
split-complementary
#9C8D38 #38799C #5B389C
monochromatic
#423C18 #6F6428 #9C8D38 #C0B051 #D1C47E

Accessibility & contrast

On white

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

On black

6.28
#9C8D38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8D38
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8D38#FFFFFF#000000##000000
##9C8D381.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A892E
Deuteranopia (green-blind)
#9E8F3C
Tritanopia (blue-blind)
#A8837B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9c8d38;
/* rgb */ color: rgb(156, 141, 56);
/* oklch */ color: oklch(64.0% 0.106 99.3);
Tailwind
colors: {
  custom: {
    50: '#bcae72',
    500: '#9c8d38',
    950: '#000000',
  },
}
SCSS
$custom: #9c8d38;
$custom-light: #bcae72;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8d38",
  "rgb": {
    "r": 156,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 51,
    "s": 47.17,
    "l": 41.569
  },
  "oklch": {
    "l": 0.63986,
    "c": 0.10649,
    "h": 99.3
  },
  "luminance": 0.26403
}

Semantic roles & 50–950 ramp

primary
#9C8D38
secondary
#7680BA
accent
#65D751
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9C8D38

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

Preview Lab → · Contrast checker → · Palette generator →

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