#9B8A30#9B8A30

#9B8A30 is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.2% C 0.110 H 98.4°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9B8A30
RGBrgb(155, 138, 48)
HSLhsl(50, 53%, 40%)
HSVhsv(50, 69%, 61%)
CMYKcmyk(0%, 11%, 69%, 39.2%)
CIE-LABlab(57.42, -4.27, 48.54)
CIE-LCHlch(57.42, 48.73, 95.03°)
OKLaboklab(63.15% -0.0161 0.1091)
OKLCHoklch(63.15% 0.11 98.4)
XYZxyz(23.1406, 25.3600, 6.4718)
Luminance0.2536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A30 #30419B
analogous
#9B5430 #9B8A30 #779B30
triadic
#9B8A30 #309B8A #8A309B
tetradic
#9B8A30 #309B54 #30419B #9B3077
square
#9B8A30 #309B54 #30419B #9B3077
split-complementary
#9B8A30 #30779B #54309B
monochromatic
#3E3713 #6C6022 #9B8A30 #C5B043 #D3C472

Accessibility & contrast

On white

3.46
#9B8A30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9B8A30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A30
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A30#FFFFFF#000000##000000
##9B8A301.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978624
Deuteranopia (green-blind)
#9C8C35
Tritanopia (blue-blind)
#A78078
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a30;
/* rgb */ color: rgb(155, 138, 48);
/* oklch */ color: oklch(63.2% 0.110 98.4);
Tailwind
colors: {
  custom: {
    50: '#bcab6d',
    500: '#9b8a30',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a30;
$custom-light: #bcab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a30",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 48
  },
  "hsl": {
    "h": 50.467,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63153,
    "c": 0.11028,
    "h": 98.4
  },
  "luminance": 0.25359
}

Semantic roles & 50–950 ramp

primary
#9B8A30
secondary
#6C78BB
accent
#63DC4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A30

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

Preview Lab → · Contrast checker → · Palette generator →

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