#9C8F38#9C8F38

#9C8F38 is a light, moderate yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.108 H 100.8°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9C8F38
RGBrgb(156, 143, 56)
HSLhsl(52, 47%, 42%)
HSVhsv(52, 64%, 61%)
CMYKcmyk(0%, 8.3%, 64.1%, 38.8%)
CIE-LABlab(58.97, -6.05, 46.65)
CIE-LCHlch(58.97, 47.04, 97.39°)
OKLaboklab(64.43% -0.0203 0.1064)
OKLCHoklch(64.43% 0.108 100.8)
XYZxyz(24.2475, 26.9994, 7.6748)
Luminance0.2700 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8F38 #38459C
analogous
#9C5D38 #9C8F38 #779C38
triadic
#9C8F38 #389C8F #8F389C
tetradic
#9C8F38 #389C5D #38459C #9C3877
square
#9C8F38 #389C5D #38459C #9C3877
split-complementary
#9C8F38 #38779C #5D389C
monochromatic
#423C18 #6F6628 #9C8F38 #C0B251 #D1C67E

Accessibility & contrast

On white

3.28
#9C8F38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#9C8F38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8F38
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8F38#FFFFFF#000000##000000
##9C8F381.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8B2E
Deuteranopia (green-blind)
#A0903D
Tritanopia (blue-blind)
#A8857D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9c8f38;
/* rgb */ color: rgb(156, 143, 56);
/* oklch */ color: oklch(64.4% 0.108 100.8);
Tailwind
colors: {
  custom: {
    50: '#bcaf73',
    500: '#9c8f38',
    950: '#000000',
  },
}
SCSS
$custom: #9c8f38;
$custom-light: #bcaf73;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8f38",
  "rgb": {
    "r": 156,
    "g": 143,
    "b": 56
  },
  "hsl": {
    "h": 52.2,
    "s": 47.17,
    "l": 41.569
  },
  "oklch": {
    "l": 0.64426,
    "c": 0.10828,
    "h": 100.8
  },
  "luminance": 0.26998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C8F38

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

Preview Lab → · Contrast checker → · Palette generator →

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