#8B7D23#8B7D23

#8B7D23 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.108 H 100.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8B7D23
RGBrgb(139, 125, 35)
HSLhsl(52, 60%, 34%)
HSVhsv(52, 75%, 55%)
CMYKcmyk(0%, 10.1%, 74.8%, 45.5%)
CIE-LABlab(52.15, -5.11, 48.14)
CIE-LCHlch(52.15, 48.41, 96.06°)
OKLaboklab(58.58% -0.019 0.1064)
OKLCHoklch(58.58% 0.108 100.2)
XYZxyz(18.2853, 20.2784, 4.5408)
Luminance0.2028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7D23 #23318B
analogous
#8B4923 #8B7D23 #658B23
triadic
#8B7D23 #238B7D #7D238B
tetradic
#8B7D23 #238B49 #23318B #8B2365
square
#8B7D23 #238B49 #23318B #8B2365
split-complementary
#8B7D23 #23658B #49238B
monochromatic
#29250A #5A5117 #8B7D23 #BCA92F #D4C354

Accessibility & contrast

On white

4.15
#8B7D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8B7D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7D23
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7D23#FFFFFF#000000##000000
##8B7D231.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897914
Deuteranopia (green-blind)
#8D7F29
Tritanopia (blue-blind)
#96746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8b7d23;
/* rgb */ color: rgb(139, 125, 35);
/* oklch */ color: oklch(58.6% 0.108 100.2);
Tailwind
colors: {
  custom: {
    50: '#b0a265',
    500: '#8b7d23',
    950: '#000000',
  },
}
SCSS
$custom: #8b7d23;
$custom-light: #b0a265;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7d23",
  "rgb": {
    "r": 139,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 51.923,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58577,
    "c": 0.10809,
    "h": 100.2
  },
  "luminance": 0.20278
}

Semantic roles & 50–950 ramp

primary
#8B7D23
secondary
#5260B8
accent
#5AE345
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8B7D23

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

Preview Lab → · Contrast checker → · Palette generator →

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