#8A8123#8A8123

#8A8123 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.112 H 103.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A8123
RGBrgb(138, 129, 35)
HSLhsl(55, 60%, 34%)
HSVhsv(55, 75%, 54%)
CMYKcmyk(0%, 6.5%, 74.6%, 45.9%)
CIE-LABlab(53.20, -7.79, 49.12)
CIE-LCHlch(53.20, 49.73, 99.01°)
OKLaboklab(59.39% -0.0265 0.1085)
OKLCHoklch(59.39% 0.112 103.7)
XYZxyz(18.6357, 21.2259, 4.7052)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8123 #232C8A
analogous
#8A4E23 #8A8123 #608A23
triadic
#8A8123 #238A81 #81238A
tetradic
#8A8123 #238A4E #232C8A #8A2360
square
#8A8123 #238A4E #232C8A #8A2360
split-complementary
#8A8123 #23608A #4E238A
monochromatic
#28260A #595317 #8A8123 #BBAF2F #D4C854

Accessibility & contrast

On white

4.00
#8A8123 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8A8123 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8123
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8123#FFFFFF#000000##000000
##8A81231.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D12
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#95786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8123;
/* rgb */ color: rgb(138, 129, 35);
/* oklch */ color: oklch(59.4% 0.112 103.7);
Tailwind
colors: {
  custom: {
    50: '#afa565',
    500: '#8a8123',
    950: '#000000',
  },
}
SCSS
$custom: #8a8123;
$custom-light: #afa565;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8123",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 35
  },
  "hsl": {
    "h": 54.757,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59385,
    "c": 0.11171,
    "h": 103.7
  },
  "luminance": 0.21225
}

Semantic roles & 50–950 ramp

primary
#8A8123
secondary
#515AB7
accent
#53E345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8123

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

Preview Lab → · Contrast checker → · Palette generator →

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