#8A7C21#8A7C21

#8A7C21 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.2% C 0.109 H 100.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A7C21
RGBrgb(138, 124, 33)
HSLhsl(52, 61%, 34%)
HSVhsv(52, 76%, 54%)
CMYKcmyk(0%, 10.1%, 76.1%, 45.9%)
CIE-LABlab(51.76, -5.11, 48.51)
CIE-LCHlch(51.76, 48.78, 96.02°)
OKLaboklab(58.24% -0.0192 0.1068)
OKLCHoklch(58.24% 0.109 100.2)
XYZxyz(17.9643, 19.9292, 4.3390)
Luminance0.1993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C21 #212F8A
analogous
#8A4721 #8A7C21 #638A21
triadic
#8A7C21 #218A7C #7C218A
tetradic
#8A7C21 #218A47 #212F8A #8A2163
square
#8A7C21 #218A47 #212F8A #8A2163
split-complementary
#8A7C21 #21638A #47218A
monochromatic
#272309 #595015 #8A7C21 #BBA82D #D5C350

Accessibility & contrast

On white

4.21
#8A7C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A7C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C21
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C21#FFFFFF#000000##000000
##8A7C211.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887810
Deuteranopia (green-blind)
#8C7E27
Tritanopia (blue-blind)
#95736A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7c21;
/* rgb */ color: rgb(138, 124, 33);
/* oklch */ color: oklch(58.2% 0.109 100.2);
Tailwind
colors: {
  custom: {
    50: '#b0a163',
    500: '#8a7c21',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c21;
$custom-light: #b0a163;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c21",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 33
  },
  "hsl": {
    "h": 52,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58238,
    "c": 0.10853,
    "h": 100.2
  },
  "luminance": 0.19928
}

Semantic roles & 50–950 ramp

primary
#8A7C21
secondary
#4E5CB9
accent
#59E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7C21

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

Preview Lab → · Contrast checker → · Palette generator →

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