#8A8122#8A8122

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

Color values

HEX#8A8122
RGBrgb(138, 129, 34)
HSLhsl(55, 60%, 34%)
HSVhsv(55, 75%, 54%)
CMYKcmyk(0%, 6.5%, 75.4%, 45.9%)
CIE-LABlab(53.19, -7.83, 49.49)
CIE-LCHlch(53.19, 50.11, 98.99°)
OKLaboklab(59.38% -0.0268 0.1091)
OKLCHoklch(59.38% 0.112 103.8)
XYZxyz(18.6210, 21.2200, 4.6281)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8122 #222B8A
analogous
#8A4D22 #8A8122 #5F8A22
triadic
#8A8122 #228A81 #81228A
tetradic
#8A8122 #228A4D #222B8A #8A225F
square
#8A8122 #228A4D #222B8A #8A225F
split-complementary
#8A8122 #225F8A #4D228A
monochromatic
#28250A #595316 #8A8122 #BBAF2E #D4C952

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8122#FFFFFF#000000##000000
##8A81221.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)
#8D7C10
Deuteranopia (green-blind)
#908129
Tritanopia (blue-blind)
#95786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8122;
/* rgb */ color: rgb(138, 129, 34);
/* oklch */ color: oklch(59.4% 0.112 103.8);
Tailwind
colors: {
  custom: {
    50: '#afa565',
    500: '#8a8122',
    950: '#000000',
  },
}
SCSS
$custom: #8a8122;
$custom-light: #afa565;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8122",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 54.808,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59378,
    "c": 0.11235,
    "h": 103.8
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#8A8122
secondary
#5059B8
accent
#52E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8122

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

Preview Lab → · Contrast checker → · Palette generator →

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