#8B8228#8B8228

#8B8228 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.7% C 0.109 H 103.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8B8228
RGBrgb(139, 130, 40)
HSLhsl(55, 55%, 35%)
HSVhsv(55, 71%, 55%)
CMYKcmyk(0%, 6.5%, 71.2%, 45.5%)
CIE-LABlab(53.61, -7.61, 47.56)
CIE-LCHlch(53.61, 48.17, 99.09°)
OKLaboklab(59.75% -0.0256 0.1061)
OKLCHoklch(59.75% 0.109 103.5)
XYZxyz(19.0139, 21.6082, 5.1763)
Luminance0.2161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8228 #28318B
analogous
#8B5028 #8B8228 #638B28
triadic
#8B8228 #288B82 #82288B
tetradic
#8B8228 #288B50 #28318B #8B2863
square
#8B8228 #288B50 #28318B #8B2863
split-complementary
#8B8228 #28638B #50288B
monochromatic
#2C290D #5B561A #8B8228 #BBAE36 #D0C65D

Accessibility & contrast

On white

3.95
#8B8228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8B8228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8228
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8228#FFFFFF#000000##000000
##8B82281.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1A
Deuteranopia (green-blind)
#91822E
Tritanopia (blue-blind)
#967970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8b8228;
/* rgb */ color: rgb(139, 130, 40);
/* oklch */ color: oklch(59.7% 0.109 103.5);
Tailwind
colors: {
  custom: {
    50: '#b0a668',
    500: '#8b8228',
    950: '#000000',
  },
}
SCSS
$custom: #8b8228;
$custom-light: #b0a668;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8228",
  "rgb": {
    "r": 139,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 54.545,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59747,
    "c": 0.10917,
    "h": 103.5
  },
  "luminance": 0.21607
}

Semantic roles & 50–950 ramp

primary
#8B8228
secondary
#5962B6
accent
#57DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8228

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

Preview Lab → · Contrast checker → · Palette generator →

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