#9B8D2F#9B8D2F

#9B8D2F is a light, moderate yellow. Relative luminance 0.262; OKLCH L 63.8% C 0.114 H 100.7°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9B8D2F
RGBrgb(155, 141, 47)
HSLhsl(52, 53%, 40%)
HSVhsv(52, 70%, 61%)
CMYKcmyk(0%, 9%, 69.7%, 39.2%)
CIE-LABlab(58.25, -5.97, 49.81)
CIE-LCHlch(58.25, 50.17, 96.83°)
OKLaboklab(63.81% -0.0211 0.1116)
OKLCHoklch(63.81% 0.114 100.7)
XYZxyz(23.5566, 26.2246, 6.5098)
Luminance0.2622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8D2F #2F3D9B
analogous
#9B572F #9B8D2F #739B2F
triadic
#9B8D2F #2F9B8D #8D2F9B
tetradic
#9B8D2F #2F9B57 #2F3D9B #9B2F73
square
#9B8D2F #2F9B57 #2F3D9B #9B2F73
split-complementary
#9B8D2F #2F739B #572F9B
monochromatic
#3D3813 #6C6221 #9B8D2F #C6B442 #D4C771

Accessibility & contrast

On white

3.36
#9B8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#9B8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8D2F
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8D2F#FFFFFF#000000##000000
##9B8D2F1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8922
Deuteranopia (green-blind)
#9E8E35
Tritanopia (blue-blind)
#A7837A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9b8d2f;
/* rgb */ color: rgb(155, 141, 47);
/* oklch */ color: oklch(63.8% 0.114 100.7);
Tailwind
colors: {
  custom: {
    50: '#bcae6d',
    500: '#9b8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #9b8d2f;
$custom-light: #bcae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8d2f",
  "rgb": {
    "r": 155,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 52.222,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63805,
    "c": 0.11357,
    "h": 100.7
  },
  "luminance": 0.26224
}

Semantic roles & 50–950 ramp

primary
#9B8D2F
secondary
#6A75BB
accent
#5EDD4B
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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