#8A8228#8A8228

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

Color values

HEX#8A8228
RGBrgb(138, 130, 40)
HSLhsl(55, 55%, 35%)
HSVhsv(55, 71%, 54%)
CMYKcmyk(0%, 5.8%, 71%, 45.9%)
CIE-LABlab(53.52, -8.07, 47.44)
CIE-LCHlch(53.52, 48.12, 99.66°)
OKLaboklab(59.65% -0.0268 0.1059)
OKLCHoklch(59.65% 0.109 104.2)
XYZxyz(18.8476, 21.5225, 5.1685)
Luminance0.2152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8228 #28308A
analogous
#8A5128 #8A8228 #618A28
triadic
#8A8228 #288A82 #82288A
tetradic
#8A8228 #288A51 #28308A #8A2861
square
#8A8228 #288A51 #28308A #8A2861
split-complementary
#8A8228 #28618A #51288A
monochromatic
#2B290C #5B551A #8A8228 #B9AF36 #D0C65D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8228#FFFFFF#000000##000000
##8A82281.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)
#8E7D1A
Deuteranopia (green-blind)
#90822E
Tritanopia (blue-blind)
#947970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8228;
/* rgb */ color: rgb(138, 130, 40);
/* oklch */ color: oklch(59.7% 0.109 104.2);
Tailwind
colors: {
  custom: {
    50: '#afa668',
    500: '#8a8228',
    950: '#000000',
  },
}
SCSS
$custom: #8a8228;
$custom-light: #afa668;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8228",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 55.102,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59651,
    "c": 0.10925,
    "h": 104.2
  },
  "luminance": 0.21522
}

Semantic roles & 50–950 ramp

primary
#8A8228
secondary
#5960B5
accent
#56DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8228

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

Preview Lab → · Contrast checker → · Palette generator →

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