#9B831F#9B831F

#9B831F is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.5% C 0.116 H 94.6°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9B831F
RGBrgb(155, 131, 31)
HSLhsl(48, 67%, 36%)
HSVhsv(48, 80%, 61%)
CMYKcmyk(0%, 15.5%, 80%, 39.2%)
CIE-LABlab(55.38, -1.23, 53.21)
CIE-LCHlch(55.38, 53.22, 91.33°)
OKLaboklab(61.5% -0.0094 0.1156)
OKLCHoklch(61.5% 0.116 94.6)
XYZxyz(21.8824, 23.3014, 4.6411)
Luminance0.2330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B831F #1F379B
analogous
#9B451F #9B831F #759B1F
triadic
#9B831F #1F9B83 #831F9B
tetradic
#9B831F #1F9B45 #1F379B #9B1F75
square
#9B831F #1F9B45 #1F379B #9B1F75
split-complementary
#9B831F #1F759B #451F9B
monochromatic
#352D0B #685815 #9B831F #CEAE29 #DDC357

Accessibility & contrast

On white

3.71
#9B831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#9B831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B831F
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B831F#FFFFFF#000000##000000
##9B831F1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#928007
Deuteranopia (green-blind)
#988826
Tritanopia (blue-blind)
#A87870
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9b831f;
/* rgb */ color: rgb(155, 131, 31);
/* oklch */ color: oklch(61.5% 0.116 94.6);
Tailwind
colors: {
  custom: {
    50: '#bda664',
    500: '#9b831f',
    950: '#000000',
  },
}
SCSS
$custom: #9b831f;
$custom-light: #bda664;
$custom-dark: #000000;
JSON
{
  "hex": "#9b831f",
  "rgb": {
    "r": 155,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 48.387,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.615,
    "c": 0.11602,
    "h": 94.6
  },
  "luminance": 0.233
}

Semantic roles & 50–950 ramp

primary
#9B831F
secondary
#556AC1
accent
#5FEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B831F

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

Preview Lab → · Contrast checker → · Palette generator →

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