#8A7E23#8A7E23

#8A7E23 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.7% C 0.109 H 101.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A7E23
RGBrgb(138, 126, 35)
HSLhsl(53, 60%, 34%)
HSVhsv(53, 75%, 54%)
CMYKcmyk(0%, 8.7%, 74.6%, 45.9%)
CIE-LABlab(52.34, -6.13, 48.29)
CIE-LCHlch(52.34, 48.68, 97.23°)
OKLaboklab(58.7% -0.0219 0.1068)
OKLCHoklch(58.7% 0.109 101.6)
XYZxyz(18.2463, 20.4471, 4.5754)
Luminance0.2045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E23 #232F8A
analogous
#8A4B23 #8A7E23 #638A23
triadic
#8A7E23 #238A7E #7E238A
tetradic
#8A7E23 #238A4B #232F8A #8A2363
square
#8A7E23 #238A4B #232F8A #8A2363
split-complementary
#8A7E23 #23638A #4B238A
monochromatic
#28250A #595117 #8A7E23 #BBAB2F #D4C554

Accessibility & contrast

On white

4.13
#8A7E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A7E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E23
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E23#FFFFFF#000000##000000
##8A7E231.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A13
Deuteranopia (green-blind)
#8E7F29
Tritanopia (blue-blind)
#95756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e23;
/* rgb */ color: rgb(138, 126, 35);
/* oklch */ color: oklch(58.7% 0.109 101.6);
Tailwind
colors: {
  custom: {
    50: '#afa365',
    500: '#8a7e23',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e23;
$custom-light: #afa365;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e23",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 53.01,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58704,
    "c": 0.10898,
    "h": 101.6
  },
  "luminance": 0.20446
}

Semantic roles & 50–950 ramp

primary
#8A7E23
secondary
#515DB7
accent
#57E345
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E23

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

Preview Lab → · Contrast checker → · Palette generator →

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