#9B8B1E#9B8B1E

#9B8B1E is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.122 H 100.4°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9B8B1E
RGBrgb(155, 139, 30)
HSLhsl(52, 68%, 36%)
HSVhsv(52, 81%, 61%)
CMYKcmyk(0%, 10.3%, 80.6%, 39.2%)
CIE-LABlab(57.59, -5.67, 55.52)
CIE-LCHlch(57.59, 55.81, 95.83°)
OKLaboklab(63.25% -0.022 0.1204)
OKLCHoklch(63.25% 0.122 100.4)
XYZxyz(22.9857, 25.5287, 4.9448)
Luminance0.2553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8B1E #1E2E9B
analogous
#9B4D1E #9B8B1E #6D9B1E
triadic
#9B8B1E #1E9B8B #8B1E9B
tetradic
#9B8B1E #1E9B4D #1E2E9B #9B1E6D
square
#9B8B1E #1E9B4D #1E2E9B #9B1E6D
split-complementary
#9B8B1E #1E6D9B #4D1E9B
monochromatic
#342F0A #685D14 #9B8B1E #CEB928 #DECD55

Accessibility & contrast

On white

3.44
#9B8B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9B8B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8B1E
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8B1E#FFFFFF#000000##000000
##9B8B1E1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#9E8D26
Tritanopia (blue-blind)
#A88077
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8b1e;
/* rgb */ color: rgb(155, 139, 30);
/* oklch */ color: oklch(63.2% 0.122 100.4);
Tailwind
colors: {
  custom: {
    50: '#bcac64',
    500: '#9b8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #9b8b1e;
$custom-light: #bcac64;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8b1e",
  "rgb": {
    "r": 155,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 52.32,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63245,
    "c": 0.12239,
    "h": 100.4
  },
  "luminance": 0.25528
}

Semantic roles & 50–950 ramp

primary
#9B8B1E
secondary
#5361C2
accent
#54EA3D
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9B8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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