#9B8A28#9B8A28

#9B8A28 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.116 H 99.1°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B8A28
RGBrgb(155, 138, 40)
HSLhsl(51, 59%, 38%)
HSVhsv(51, 74%, 61%)
CMYKcmyk(0%, 11%, 74.2%, 39.2%)
CIE-LABlab(57.37, -4.70, 51.77)
CIE-LCHlch(57.37, 51.98, 95.19°)
OKLaboklab(63.09% -0.0183 0.1144)
OKLCHoklch(63.09% 0.116 99.1)
XYZxyz(22.9902, 25.2998, 5.6795)
Luminance0.2530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A28 #28399B
analogous
#9B5028 #9B8A28 #729B28
triadic
#9B8A28 #289B8A #8A289B
tetradic
#9B8A28 #289B50 #28399B #9B2872
square
#9B8A28 #289B50 #28399B #9B2872
split-complementary
#9B8A28 #28729B #50289B
monochromatic
#3A330F #6A5F1B #9B8A28 #CBB535 #D7C766

Accessibility & contrast

On white

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

On black

6.06
#9B8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8A28
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8A28#FFFFFF#000000##000000
##9B8A281.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988617
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#A77F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a28;
/* rgb */ color: rgb(155, 138, 40);
/* oklch */ color: oklch(63.1% 0.116 99.1);
Tailwind
colors: {
  custom: {
    50: '#bcab69',
    500: '#9b8a28',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a28;
$custom-light: #bcab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a28",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 51.13,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.63089,
    "c": 0.11587,
    "h": 99.1
  },
  "luminance": 0.25299
}

Semantic roles & 50–950 ramp

primary
#9B8A28
secondary
#616FBD
accent
#5DE246
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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