#9B842E#9B842E

#9B842E is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.8% C 0.107 H 93.9°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9B842E
RGBrgb(155, 132, 46)
HSLhsl(47, 54%, 39%)
HSVhsv(47, 70%, 61%)
CMYKcmyk(0%, 14.8%, 70.3%, 39.2%)
CIE-LABlab(55.76, -1.08, 47.69)
CIE-LCHlch(55.76, 47.70, 91.29°)
OKLaboklab(61.83% -0.0072 0.1069)
OKLCHoklch(61.83% 0.107 93.9)
XYZxyz(22.2631, 23.6696, 5.9803)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B842E #2E459B
analogous
#9B4D2E #9B842E #7C9B2E
triadic
#9B842E #2E9B84 #842E9B
tetradic
#9B842E #2E9B4D #2E459B #9B2E7C
square
#9B842E #2E9B4D #2E459B #9B2E7C
split-complementary
#9B842E #2E7C9B #4D2E9B
monochromatic
#3D3412 #6C5C20 #9B842E #C6AA40 #D4BF6F

Accessibility & contrast

On white

3.66
#9B842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#9B842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B842E
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B842E#FFFFFF#000000##000000
##9B842E1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928222
Deuteranopia (green-blind)
#988933
Tritanopia (blue-blind)
#A77A72
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9b842e;
/* rgb */ color: rgb(155, 132, 46);
/* oklch */ color: oklch(61.8% 0.107 93.9);
Tailwind
colors: {
  custom: {
    50: '#bca76c',
    500: '#9b842e',
    950: '#000000',
  },
}
SCSS
$custom: #9b842e;
$custom-light: #bca76c;
$custom-dark: #000000;
JSON
{
  "hex": "#9b842e",
  "rgb": {
    "r": 155,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 47.339,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.61827,
    "c": 0.10718,
    "h": 93.9
  },
  "luminance": 0.23668
}

Semantic roles & 50–950 ramp

primary
#9B842E
secondary
#697BBC
accent
#69DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9B842E

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

Preview Lab → · Contrast checker → · Palette generator →

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