#9B8F20#9B8F20

#9B8F20 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.1% C 0.125 H 102.8°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9B8F20
RGBrgb(155, 143, 32)
HSLhsl(54, 66%, 37%)
HSVhsv(54, 79%, 61%)
CMYKcmyk(0%, 7.7%, 79.4%, 39.2%)
CIE-LABlab(58.71, -7.77, 55.88)
CIE-LCHlch(58.71, 56.42, 97.91°)
OKLaboklab(64.14% -0.0277 0.1216)
OKLCHoklch(64.14% 0.125 102.8)
XYZxyz(23.6018, 26.7188, 5.2803)
Luminance0.2672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8F20 #202C9B
analogous
#9B5220 #9B8F20 #6A9B20
triadic
#9B8F20 #209B8F #8F209B
tetradic
#9B8F20 #209B52 #202C9B #9B206A
square
#9B8F20 #209B52 #202C9B #9B206A
split-complementary
#9B8F20 #206A9B #52209B
monochromatic
#36310B #686016 #9B8F20 #CEBE2A #DDD059

Accessibility & contrast

On white

3.31
#9B8F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9B8F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8F20
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8F20#FFFFFF#000000##000000
##9B8F201.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A02
Deuteranopia (green-blind)
#A09029
Tritanopia (blue-blind)
#A7847A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9b8f20;
/* rgb */ color: rgb(155, 143, 32);
/* oklch */ color: oklch(64.1% 0.125 102.8);
Tailwind
colors: {
  custom: {
    50: '#bcaf66',
    500: '#9b8f20',
    950: '#000000',
  },
}
SCSS
$custom: #9b8f20;
$custom-light: #bcaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8f20",
  "rgb": {
    "r": 155,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 54.146,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.64143,
    "c": 0.1247,
    "h": 102.8
  },
  "luminance": 0.26718
}

Semantic roles & 50–950 ramp

primary
#9B8F20
secondary
#5661C1
accent
#50E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9B8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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