#8A8723#8A8723

#8A8723 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.118 H 107.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A8723
RGBrgb(138, 135, 35)
HSLhsl(58, 60%, 34%)
HSVhsv(58, 75%, 54%)
CMYKcmyk(0%, 2.2%, 74.6%, 45.9%)
CIE-LABlab(54.92, -11.05, 50.77)
CIE-LCHlch(54.92, 51.96, 102.28°)
OKLaboklab(60.76% -0.0357 0.112)
OKLCHoklch(60.76% 0.118 107.7)
XYZxyz(19.4493, 22.8532, 4.9764)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8723 #23268A
analogous
#8A5423 #8A8723 #5A8A23
triadic
#8A8723 #238A87 #87238A
tetradic
#8A8723 #238A54 #23268A #8A235A
square
#8A8723 #238A54 #23268A #8A235A
split-complementary
#8A8723 #235A8A #54238A
monochromatic
#28270A #595717 #8A8723 #BBB72F #D4D054

Accessibility & contrast

On white

3.77
#8A8723 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A8723 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8723
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8723#FFFFFF#000000##000000
##8A87231.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938110
Deuteranopia (green-blind)
#94852B
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8723;
/* rgb */ color: rgb(138, 135, 35);
/* oklch */ color: oklch(60.8% 0.118 107.7);
Tailwind
colors: {
  custom: {
    50: '#afa966',
    500: '#8a8723',
    950: '#000000',
  },
}
SCSS
$custom: #8a8723;
$custom-light: #afa966;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8723",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 35
  },
  "hsl": {
    "h": 58.252,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60759,
    "c": 0.11756,
    "h": 107.7
  },
  "luminance": 0.22853
}

Semantic roles & 50–950 ramp

primary
#8A8723
secondary
#5154B7
accent
#4AE345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8723

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

Preview Lab → · Contrast checker → · Palette generator →

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