#8A8A34#8A8A34

#8A8A34 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.108 H 109.2°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A8A34
RGBrgb(138, 138, 52)
HSLhsl(60, 45%, 37%)
HSVhsv(60, 62%, 54%)
CMYKcmyk(0%, 0%, 62.3%, 45.9%)
CIE-LABlab(55.92, -11.65, 44.71)
CIE-LCHlch(55.92, 46.20, 104.60°)
OKLaboklab(61.59% -0.0355 0.1021)
OKLCHoklch(61.59% 0.108 109.2)
XYZxyz(20.1902, 23.8287, 6.7840)
Luminance0.2383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A34 #34348A
analogous
#8A5F34 #8A8A34 #5F8A34
triadic
#8A8A34 #348A8A #8A348A
tetradic
#8A8A34 #348A5F #34348A #8A345F
square
#8A8A34 #348A5F #34348A #8A345F
split-complementary
#8A8A34 #345F8A #5F348A
monochromatic
#313113 #5E5E23 #8A8A34 #B6B645 #C9C96F

Accessibility & contrast

On white

3.64
#8A8A34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8A8A34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A34
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A34#FFFFFF#000000##000000
##8A8A341.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#95842A
Deuteranopia (green-blind)
#968739
Tritanopia (blue-blind)
#938278
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a34;
/* rgb */ color: rgb(138, 138, 52);
/* oklch */ color: oklch(61.6% 0.108 109.2);
Tailwind
colors: {
  custom: {
    50: '#afac70',
    500: '#8a8a34',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a34;
$custom-light: #afac70;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a34",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 52
  },
  "hsl": {
    "h": 60,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61594,
    "c": 0.10813,
    "h": 109.2
  },
  "luminance": 0.23828
}

Semantic roles & 50–950 ramp

primary
#8A8A34
secondary
#6969B1
accent
#53D553
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111008
muted
#807F7B

Preview Lab

Preview with #8A8A34

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

Preview Lab → · Contrast checker → · Palette generator →

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