#9B8928#9B8928

#9B8928 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.9% C 0.115 H 98.4°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#9B8928
RGBrgb(155, 137, 40)
HSLhsl(51, 59%, 38%)
HSVhsv(51, 74%, 61%)
CMYKcmyk(0%, 11.6%, 74.2%, 39.2%)
CIE-LABlab(57.09, -4.15, 51.50)
CIE-LCHlch(57.09, 51.67, 94.61°)
OKLaboklab(62.87% -0.0167 0.1139)
OKLCHoklch(62.87% 0.115 98.4)
XYZxyz(22.8474, 25.0142, 5.6319)
Luminance0.2501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8928 #283A9B
analogous
#9B5028 #9B8928 #739B28
triadic
#9B8928 #289B89 #89289B
tetradic
#9B8928 #289B50 #283A9B #9B2873
square
#9B8928 #289B50 #283A9B #9B2873
split-complementary
#9B8928 #28739B #50289B
monochromatic
#3A330F #6A5E1B #9B8928 #CBB435 #D7C666

Accessibility & contrast

On white

3.50
#9B8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#9B8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8928
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8928#FFFFFF#000000##000000
##9B89281.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978518
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#A77E76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9b8928;
/* rgb */ color: rgb(155, 137, 40);
/* oklch */ color: oklch(62.9% 0.115 98.4);
Tailwind
colors: {
  custom: {
    50: '#bcab69',
    500: '#9b8928',
    950: '#000000',
  },
}
SCSS
$custom: #9b8928;
$custom-light: #bcab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8928",
  "rgb": {
    "r": 155,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 50.609,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.62869,
    "c": 0.11507,
    "h": 98.4
  },
  "luminance": 0.25013
}

Semantic roles & 50–950 ramp

primary
#9B8928
secondary
#6170BD
accent
#5EE246
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8928

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

Preview Lab → · Contrast checker → · Palette generator →

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