#8A8226#8A8226

#8A8226 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.6% C 0.111 H 104.3°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8A8226
RGBrgb(138, 130, 38)
HSLhsl(55, 57%, 35%)
HSVhsv(55, 72%, 54%)
CMYKcmyk(0%, 5.8%, 72.5%, 45.9%)
CIE-LABlab(53.50, -8.18, 48.24)
CIE-LCHlch(53.50, 48.93, 99.62°)
OKLaboklab(59.64% -0.0273 0.1072)
OKLCHoklch(59.64% 0.111 104.3)
XYZxyz(18.8145, 21.5092, 4.9940)
Luminance0.2151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8226 #262E8A
analogous
#8A5026 #8A8226 #608A26
triadic
#8A8226 #268A82 #82268A
tetradic
#8A8226 #268A50 #262E8A #8A2660
square
#8A8226 #268A50 #262E8A #8A2660
split-complementary
#8A8226 #26608A #50268A
monochromatic
#2A280C #5A5519 #8A8226 #BAAF33 #D1C859

Accessibility & contrast

On white

3.96
#8A8226 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#8A8226 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8226
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8226#FFFFFF#000000##000000
##8A82261.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D17
Deuteranopia (green-blind)
#91822C
Tritanopia (blue-blind)
#957970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8226;
/* rgb */ color: rgb(138, 130, 38);
/* oklch */ color: oklch(59.6% 0.111 104.3);
Tailwind
colors: {
  custom: {
    50: '#afa667',
    500: '#8a8226',
    950: '#000000',
  },
}
SCSS
$custom: #8a8226;
$custom-light: #afa667;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8226",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 38
  },
  "hsl": {
    "h": 55.2,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59635,
    "c": 0.11065,
    "h": 104.3
  },
  "luminance": 0.21508
}

Semantic roles & 50–950 ramp

primary
#8A8226
secondary
#565DB6
accent
#54E048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8226

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

Preview Lab → · Contrast checker → · Palette generator →

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