#9B8A1E#9B8A1E

#9B8A1E is a light, vivid yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.122 H 99.7°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9B8A1E
RGBrgb(155, 138, 30)
HSLhsl(52, 68%, 36%)
HSVhsv(52, 81%, 61%)
CMYKcmyk(0%, 11%, 80.6%, 39.2%)
CIE-LABlab(57.31, -5.13, 55.27)
CIE-LCHlch(57.31, 55.51, 95.30°)
OKLaboklab(63.03% -0.0205 0.1199)
OKLCHoklch(63.03% 0.122 99.7)
XYZxyz(22.8416, 25.2404, 4.8968)
Luminance0.2524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A1E #1E2F9B
analogous
#9B4C1E #9B8A1E #6E9B1E
triadic
#9B8A1E #1E9B8A #8A1E9B
tetradic
#9B8A1E #1E9B4C #1E2F9B #9B1E6E
square
#9B8A1E #1E9B4C #1E2F9B #9B1E6E
split-complementary
#9B8A1E #1E6E9B #4C1E9B
monochromatic
#342F0A #685C14 #9B8A1E #CEB828 #DECC55

Accessibility & contrast

On white

3.47
#9B8A1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9B8A1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A1E
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A1E#FFFFFF#000000##000000
##9B8A1E1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988601
Deuteranopia (green-blind)
#9D8C26
Tritanopia (blue-blind)
#A87F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a1e;
/* rgb */ color: rgb(155, 138, 30);
/* oklch */ color: oklch(63.0% 0.122 99.7);
Tailwind
colors: {
  custom: {
    50: '#bcab64',
    500: '#9b8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a1e;
$custom-light: #bcab64;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a1e",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 51.84,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63025,
    "c": 0.1216,
    "h": 99.7
  },
  "luminance": 0.25239
}

Semantic roles & 50–950 ramp

primary
#9B8A1E
secondary
#5362C2
accent
#55EA3D
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9B8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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