#8A8227#8A8227

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

Color values

HEX#8A8227
RGBrgb(138, 130, 39)
HSLhsl(55, 56%, 35%)
HSVhsv(55, 72%, 54%)
CMYKcmyk(0%, 5.8%, 71.7%, 45.9%)
CIE-LABlab(53.51, -8.13, 47.84)
CIE-LCHlch(53.51, 48.53, 99.64°)
OKLaboklab(59.64% -0.0271 0.1066)
OKLCHoklch(59.64% 0.11 104.3)
XYZxyz(18.8308, 21.5158, 5.0801)
Luminance0.2152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8227 #272F8A
analogous
#8A5127 #8A8227 #608A27
triadic
#8A8227 #278A82 #82278A
tetradic
#8A8227 #278A51 #272F8A #8A2760
square
#8A8227 #278A51 #272F8A #8A2760
split-complementary
#8A8227 #27608A #51278A
monochromatic
#2B280C #5A551A #8A8227 #BAAF34 #D1C75B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8227#FFFFFF#000000##000000
##8A82271.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)
#8E7D19
Deuteranopia (green-blind)
#90822D
Tritanopia (blue-blind)
#947970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8227;
/* rgb */ color: rgb(138, 130, 39);
/* oklch */ color: oklch(59.6% 0.110 104.3);
Tailwind
colors: {
  custom: {
    50: '#afa667',
    500: '#8a8227',
    950: '#000000',
  },
}
SCSS
$custom: #8a8227;
$custom-light: #afa667;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8227",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 55.152,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59643,
    "c": 0.10995,
    "h": 104.3
  },
  "luminance": 0.21515
}

Semantic roles & 50–950 ramp

primary
#8A8227
secondary
#575FB6
accent
#55DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8227

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

Preview Lab → · Contrast checker → · Palette generator →

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