#8A7D23#8A7D23

#8A7D23 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.108 H 100.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A7D23
RGBrgb(138, 125, 35)
HSLhsl(52, 60%, 34%)
HSVhsv(52, 75%, 54%)
CMYKcmyk(0%, 9.4%, 74.6%, 45.9%)
CIE-LABlab(52.05, -5.57, 48.02)
CIE-LCHlch(52.05, 48.34, 96.62°)
OKLaboklab(58.48% -0.0203 0.1062)
OKLCHoklch(58.48% 0.108 100.8)
XYZxyz(18.1191, 20.1927, 4.5330)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D23 #23308A
analogous
#8A4A23 #8A7D23 #648A23
triadic
#8A7D23 #238A7D #7D238A
tetradic
#8A7D23 #238A4A #23308A #8A2364
square
#8A7D23 #238A4A #23308A #8A2364
split-complementary
#8A7D23 #23648A #4A238A
monochromatic
#28250A #595117 #8A7D23 #BBA92F #D4C354

Accessibility & contrast

On white

4.17
#8A7D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A7D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D23
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D23#FFFFFF#000000##000000
##8A7D231.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7d23;
/* rgb */ color: rgb(138, 125, 35);
/* oklch */ color: oklch(58.5% 0.108 100.8);
Tailwind
colors: {
  custom: {
    50: '#afa265',
    500: '#8a7d23',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d23;
$custom-light: #afa265;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d23",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 52.427,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58478,
    "c": 0.1081,
    "h": 100.8
  },
  "luminance": 0.20192
}

Semantic roles & 50–950 ramp

primary
#8A7D23
secondary
#515EB7
accent
#59E345
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D23

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

Preview Lab → · Contrast checker → · Palette generator →

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