#8A7A21#8A7A21

#8A7A21 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.107 H 98.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A7A21
RGBrgb(138, 122, 33)
HSLhsl(51, 61%, 34%)
HSVhsv(51, 76%, 54%)
CMYKcmyk(0%, 11.6%, 76.1%, 45.9%)
CIE-LABlab(51.19, -4.00, 47.97)
CIE-LCHlch(51.19, 48.13, 94.76°)
OKLaboklab(57.79% -0.016 0.1057)
OKLCHoklch(57.79% 0.107 98.6)
XYZxyz(17.7162, 19.4330, 4.2563)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A21 #21318A
analogous
#8A4521 #8A7A21 #658A21
triadic
#8A7A21 #218A7A #7A218A
tetradic
#8A7A21 #218A45 #21318A #8A2165
square
#8A7A21 #218A45 #21318A #8A2165
split-complementary
#8A7A21 #21658A #45218A
monochromatic
#272309 #594E15 #8A7A21 #BBA62D #D5C150

Accessibility & contrast

On white

4.30
#8A7A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A7A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A21
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A21#FFFFFF#000000##000000
##8A7A211.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#877711
Deuteranopia (green-blind)
#8B7C27
Tritanopia (blue-blind)
#957069
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a21;
/* rgb */ color: rgb(138, 122, 33);
/* oklch */ color: oklch(57.8% 0.107 98.6);
Tailwind
colors: {
  custom: {
    50: '#b0a063',
    500: '#8a7a21',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a21;
$custom-light: #b0a063;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a21",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 50.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57788,
    "c": 0.10688,
    "h": 98.6
  },
  "luminance": 0.19432
}

Semantic roles & 50–950 ramp

primary
#8A7A21
secondary
#4E5EB9
accent
#5CE543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A21

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

Preview Lab → · Contrast checker → · Palette generator →

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