#9B8231#9B8231

#9B8231 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.4% C 0.104 H 91.8°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9B8231
RGBrgb(155, 130, 49)
HSLhsl(46, 52%, 40%)
HSVhsv(46, 68%, 61%)
CMYKcmyk(0%, 16.1%, 68.4%, 39.2%)
CIE-LABlab(55.23, 0.21, 45.82)
CIE-LCHlch(55.23, 45.82, 89.73°)
OKLaboklab(61.42% -0.0032 0.1035)
OKLCHoklch(61.42% 0.104 91.8)
XYZxyz(22.0557, 23.1568, 6.2131)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8231 #314A9B
analogous
#9B4D31 #9B8231 #7F9B31
triadic
#9B8231 #319B82 #82319B
tetradic
#9B8231 #319B4D #314A9B #9B317F
square
#9B8231 #319B4D #314A9B #9B317F
split-complementary
#9B8231 #317F9B #4D319B
monochromatic
#3E3414 #6D5B22 #9B8231 #C4A645 #D3BC73

Accessibility & contrast

On white

3.73
#9B8231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#9B8231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8231
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8231#FFFFFF#000000##000000
##9B82311.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#908027
Deuteranopia (green-blind)
#968735
Tritanopia (blue-blind)
#A77871
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9b8231;
/* rgb */ color: rgb(155, 130, 49);
/* oklch */ color: oklch(61.4% 0.104 91.8);
Tailwind
colors: {
  custom: {
    50: '#bca66d',
    500: '#9b8231',
    950: '#000000',
  },
}
SCSS
$custom: #9b8231;
$custom-light: #bca66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8231",
  "rgb": {
    "r": 155,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 45.849,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.61423,
    "c": 0.10355,
    "h": 91.8
  },
  "luminance": 0.23156
}

Semantic roles & 50–950 ramp

primary
#9B8231
secondary
#6D7FBB
accent
#6EDB4C
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9B8231

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

Preview Lab → · Contrast checker → · Palette generator →

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