#9B841F#9B841F

#9B841F is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.7% C 0.117 H 95.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9B841F
RGBrgb(155, 132, 31)
HSLhsl(49, 67%, 36%)
HSVhsv(49, 80%, 61%)
CMYKcmyk(0%, 14.8%, 80%, 39.2%)
CIE-LABlab(55.66, -1.79, 53.46)
CIE-LCHlch(55.66, 53.49, 91.91°)
OKLaboklab(61.72% -0.0109 0.1162)
OKLCHoklch(61.72% 0.117 95.4)
XYZxyz(22.0174, 23.5713, 4.6861)
Luminance0.2357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B841F #1F369B
analogous
#9B461F #9B841F #749B1F
triadic
#9B841F #1F9B84 #841F9B
tetradic
#9B841F #1F9B46 #1F369B #9B1F74
square
#9B841F #1F9B46 #1F369B #9B1F74
split-complementary
#9B841F #1F749B #461F9B
monochromatic
#352D0B #685915 #9B841F #CEAF29 #DDC457

Accessibility & contrast

On white

3.68
#9B841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#9B841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B841F
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B841F#FFFFFF#000000##000000
##9B841F1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b841f;
/* rgb */ color: rgb(155, 132, 31);
/* oklch */ color: oklch(61.7% 0.117 95.4);
Tailwind
colors: {
  custom: {
    50: '#bca764',
    500: '#9b841f',
    950: '#000000',
  },
}
SCSS
$custom: #9b841f;
$custom-light: #bca764;
$custom-dark: #000000;
JSON
{
  "hex": "#9b841f",
  "rgb": {
    "r": 155,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 48.871,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61717,
    "c": 0.11668,
    "h": 95.4
  },
  "luminance": 0.2357
}

Semantic roles & 50–950 ramp

primary
#9B841F
secondary
#5569C1
accent
#5EEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B841F

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

Preview Lab → · Contrast checker → · Palette generator →

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