#8B821B#8B821B

#8B821B is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.7% C 0.117 H 104.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8B821B
RGBrgb(139, 130, 27)
HSLhsl(55, 67%, 33%)
HSVhsv(55, 81%, 55%)
CMYKcmyk(0%, 6.5%, 80.6%, 45.5%)
CIE-LABlab(53.53, -8.22, 52.29)
CIE-LCHlch(53.53, 52.94, 98.94°)
OKLaboklab(59.66% -0.0286 0.1136)
OKLCHoklch(59.66% 0.117 104.1)
XYZxyz(18.8288, 21.5342, 4.2014)
Luminance0.2153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B821B #1B248B
analogous
#8B4A1B #8B821B #5C8B1B
triadic
#8B821B #1B8B82 #821B8B
tetradic
#8B821B #1B8B4A #1B248B #8B1B5C
square
#8B821B #1B8B4A #1B248B #8B1B5C
split-complementary
#8B821B #1B5C8B #4A1B8B
monochromatic
#252207 #585211 #8B821B #BEB225 #DBCF45

Accessibility & contrast

On white

3.96
#8B821B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8B821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B821B
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B821B#FFFFFF#000000##000000
##8B821B1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#96786F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8b821b;
/* rgb */ color: rgb(139, 130, 27);
/* oklch */ color: oklch(59.7% 0.117 104.1);
Tailwind
colors: {
  custom: {
    50: '#b0a661',
    500: '#8b821b',
    950: '#000000',
  },
}
SCSS
$custom: #8b821b;
$custom-light: #b0a661;
$custom-dark: #000000;
JSON
{
  "hex": "#8b821b",
  "rgb": {
    "r": 139,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 55.179,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59658,
    "c": 0.11717,
    "h": 104.1
  },
  "luminance": 0.21533
}

Semantic roles & 50–950 ramp

primary
#8B821B
secondary
#454FBC
accent
#4BEA3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8B821B

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

Preview Lab → · Contrast checker → · Palette generator →

#8B821B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva