#8A7A23#8A7A23

#8A7A23 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.106 H 98.5°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A7A23
RGBrgb(138, 122, 35)
HSLhsl(51, 60%, 34%)
HSVhsv(51, 75%, 54%)
CMYKcmyk(0%, 11.6%, 74.6%, 45.9%)
CIE-LABlab(51.20, -3.90, 47.19)
CIE-LCHlch(51.20, 47.35, 94.72°)
OKLaboklab(57.8% -0.0155 0.1044)
OKLCHoklch(57.8% 0.106 98.5)
XYZxyz(17.7450, 19.4446, 4.4083)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A23 #23338A
analogous
#8A4723 #8A7A23 #678A23
triadic
#8A7A23 #238A7A #7A238A
tetradic
#8A7A23 #238A47 #23338A #8A2367
square
#8A7A23 #238A47 #23338A #8A2367
split-complementary
#8A7A23 #23678A #47238A
monochromatic
#28240A #594F17 #8A7A23 #BBA52F #D4C054

Accessibility & contrast

On white

4.30
#8A7A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A7A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A23
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A23#FFFFFF#000000##000000
##8A7A231.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867715
Deuteranopia (green-blind)
#8B7C28
Tritanopia (blue-blind)
#957169
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a23;
/* rgb */ color: rgb(138, 122, 35);
/* oklch */ color: oklch(57.8% 0.106 98.5);
Tailwind
colors: {
  custom: {
    50: '#afa064',
    500: '#8a7a23',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a23;
$custom-light: #afa064;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a23",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 35
  },
  "hsl": {
    "h": 50.68,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57803,
    "c": 0.10558,
    "h": 98.5
  },
  "luminance": 0.19444
}

Semantic roles & 50–950 ramp

primary
#8A7A23
secondary
#5161B7
accent
#5EE345
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A23

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

Preview Lab → · Contrast checker → · Palette generator →

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