#9C8E38#9C8E38

#9C8E38 is a light, moderate yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.107 H 100.1°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9C8E38
RGBrgb(156, 142, 56)
HSLhsl(52, 47%, 42%)
HSVhsv(52, 64%, 61%)
CMYKcmyk(0%, 9%, 64.1%, 38.8%)
CIE-LABlab(58.70, -5.51, 46.35)
CIE-LCHlch(58.70, 46.67, 96.78°)
OKLaboklab(64.21% -0.0188 0.1057)
OKLCHoklch(64.21% 0.107 100.1)
XYZxyz(24.0981, 26.7005, 7.6250)
Luminance0.2670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8E38 #38469C
analogous
#9C5C38 #9C8E38 #789C38
triadic
#9C8E38 #389C8E #8E389C
tetradic
#9C8E38 #389C5C #38469C #9C3878
square
#9C8E38 #389C5C #38469C #9C3878
split-complementary
#9C8E38 #38789C #5C389C
monochromatic
#423C18 #6F6528 #9C8E38 #C0B151 #D1C57E

Accessibility & contrast

On white

3.31
#9C8E38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9C8E38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8E38
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8E38#FFFFFF#000000##000000
##9C8E381.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A2E
Deuteranopia (green-blind)
#9F903D
Tritanopia (blue-blind)
#A8847C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9c8e38;
/* rgb */ color: rgb(156, 142, 56);
/* oklch */ color: oklch(64.2% 0.107 100.1);
Tailwind
colors: {
  custom: {
    50: '#bcae73',
    500: '#9c8e38',
    950: '#000000',
  },
}
SCSS
$custom: #9c8e38;
$custom-light: #bcae73;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8e38",
  "rgb": {
    "r": 156,
    "g": 142,
    "b": 56
  },
  "hsl": {
    "h": 51.6,
    "s": 47.17,
    "l": 41.569
  },
  "oklch": {
    "l": 0.64206,
    "c": 0.10737,
    "h": 100.1
  },
  "luminance": 0.26699
}

Semantic roles & 50–950 ramp

primary
#9C8E38
secondary
#767FBA
accent
#64D751
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9C8E38

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

Preview Lab → · Contrast checker → · Palette generator →

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