#8A8023#8A8023

#8A8023 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.111 H 103.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A8023
RGBrgb(138, 128, 35)
HSLhsl(54, 60%, 34%)
HSVhsv(54, 75%, 54%)
CMYKcmyk(0%, 7.2%, 74.6%, 45.9%)
CIE-LABlab(52.91, -7.23, 48.84)
CIE-LCHlch(52.91, 49.38, 98.42°)
OKLaboklab(59.16% -0.025 0.1079)
OKLCHoklch(59.16% 0.111 103)
XYZxyz(18.5046, 20.9637, 4.6615)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8023 #232D8A
analogous
#8A4D23 #8A8023 #618A23
triadic
#8A8023 #238A80 #80238A
tetradic
#8A8023 #238A4D #232D8A #8A2361
square
#8A8023 #238A4D #232D8A #8A2361
split-complementary
#8A8023 #23618A #4D238A
monochromatic
#28250A #595317 #8A8023 #BBAD2F #D4C754

Accessibility & contrast

On white

4.04
#8A8023 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A8023 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8023
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8023#FFFFFF#000000##000000
##8A80231.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C13
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#95776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a8023;
/* rgb */ color: rgb(138, 128, 35);
/* oklch */ color: oklch(59.2% 0.111 103.0);
Tailwind
colors: {
  custom: {
    50: '#afa465',
    500: '#8a8023',
    950: '#000000',
  },
}
SCSS
$custom: #8a8023;
$custom-light: #afa465;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8023",
  "rgb": {
    "r": 138,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 54.175,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59158,
    "c": 0.11079,
    "h": 103
  },
  "luminance": 0.20963
}

Semantic roles & 50–950 ramp

primary
#8A8023
secondary
#515BB7
accent
#54E345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8023

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

Preview Lab → · Contrast checker → · Palette generator →

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