#8A7B23#8A7B23

#8A7B23 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.0% C 0.106 H 99.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7B23
RGBrgb(138, 123, 35)
HSLhsl(51, 60%, 34%)
HSVhsv(51, 75%, 54%)
CMYKcmyk(0%, 10.9%, 74.6%, 45.9%)
CIE-LABlab(51.49, -4.46, 47.47)
CIE-LCHlch(51.49, 47.68, 95.37°)
OKLaboklab(58.03% -0.0171 0.105)
OKLCHoklch(58.03% 0.106 99.3)
XYZxyz(17.8684, 19.6914, 4.4494)
Luminance0.1969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B23 #23328A
analogous
#8A4823 #8A7B23 #668A23
triadic
#8A7B23 #238A7B #7B238A
tetradic
#8A7B23 #238A48 #23328A #8A2366
square
#8A7B23 #238A48 #23328A #8A2366
split-complementary
#8A7B23 #23668A #48238A
monochromatic
#28240A #594F17 #8A7B23 #BBA72F #D4C154

Accessibility & contrast

On white

4.25
#8A7B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A7B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B23
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B23#FFFFFF#000000##000000
##8A7B231.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877814
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b23;
/* rgb */ color: rgb(138, 123, 35);
/* oklch */ color: oklch(58.0% 0.106 99.3);
Tailwind
colors: {
  custom: {
    50: '#afa064',
    500: '#8a7b23',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b23;
$custom-light: #afa064;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b23",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 35
  },
  "hsl": {
    "h": 51.262,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58028,
    "c": 0.1064,
    "h": 99.3
  },
  "luminance": 0.19691
}

Semantic roles & 50–950 ramp

primary
#8A7B23
secondary
#5160B7
accent
#5CE345
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B23

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

Preview Lab → · Contrast checker → · Palette generator →

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