#8A8628#8A8628

#8A8628 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.6% C 0.113 H 106.9°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A8628
RGBrgb(138, 134, 40)
HSLhsl(58, 55%, 35%)
HSVhsv(58, 71%, 54%)
CMYKcmyk(0%, 2.9%, 71%, 45.9%)
CIE-LABlab(54.67, -10.25, 48.59)
CIE-LCHlch(54.67, 49.66, 101.91°)
OKLaboklab(60.57% -0.033 0.1083)
OKLCHoklch(60.57% 0.113 106.9)
XYZxyz(19.3901, 22.6073, 5.3493)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8628 #282C8A
analogous
#8A5528 #8A8628 #5D8A28
triadic
#8A8628 #288A86 #86288A
tetradic
#8A8628 #288A55 #282C8A #8A285D
square
#8A8628 #288A55 #282C8A #8A285D
split-complementary
#8A8628 #285D8A #55288A
monochromatic
#2B2A0C #5B581A #8A8628 #B9B436 #D0CB5D

Accessibility & contrast

On white

3.80
#8A8628 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#8A8628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8628
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8628#FFFFFF#000000##000000
##8A86281.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918119
Deuteranopia (green-blind)
#93842E
Tritanopia (blue-blind)
#947D73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8628;
/* rgb */ color: rgb(138, 134, 40);
/* oklch */ color: oklch(60.6% 0.113 106.9);
Tailwind
colors: {
  custom: {
    50: '#afa968',
    500: '#8a8628',
    950: '#000000',
  },
}
SCSS
$custom: #8a8628;
$custom-light: #afa968;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8628",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 40
  },
  "hsl": {
    "h": 57.551,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60566,
    "c": 0.11323,
    "h": 106.9
  },
  "luminance": 0.22607
}

Semantic roles & 50–950 ramp

primary
#8A8628
secondary
#595CB5
accent
#4FDE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8628

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

Preview Lab → · Contrast checker → · Palette generator →

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