#9B8A27#9B8A27

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

Color values

HEX#9B8A27
RGBrgb(155, 138, 39)
HSLhsl(51, 60%, 38%)
HSVhsv(51, 75%, 61%)
CMYKcmyk(0%, 11%, 74.8%, 39.2%)
CIE-LABlab(57.36, -4.75, 52.15)
CIE-LCHlch(57.36, 52.36, 95.20°)
OKLaboklab(63.08% -0.0185 0.115)
OKLCHoklch(63.08% 0.117 99.1)
XYZxyz(22.9734, 25.2931, 5.5910)
Luminance0.2529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8A27 #27389B
analogous
#9B5027 #9B8A27 #729B27
triadic
#9B8A27 #279B8A #8A279B
tetradic
#9B8A27 #279B50 #27389B #9B2772
square
#9B8A27 #279B50 #27389B #9B2772
split-complementary
#9B8A27 #27729B #50279B
monochromatic
#39330E #6A5E1B #9B8A27 #CCB533 #D8C764

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B8A27#FFFFFF#000000##000000
##9B8A271.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)
#988616
Deuteranopia (green-blind)
#9C8C2D
Tritanopia (blue-blind)
#A77F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9b8a27;
/* rgb */ color: rgb(155, 138, 39);
/* oklch */ color: oklch(63.1% 0.117 99.1);
Tailwind
colors: {
  custom: {
    50: '#bcab69',
    500: '#9b8a27',
    950: '#000000',
  },
}
SCSS
$custom: #9b8a27;
$custom-light: #bcab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8a27",
  "rgb": {
    "r": 155,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 51.207,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63081,
    "c": 0.1165,
    "h": 99.1
  },
  "luminance": 0.25292
}

Semantic roles & 50–950 ramp

primary
#9B8A27
secondary
#606EBE
accent
#5CE345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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