#8A7921#8A7921

#8A7921 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.6% C 0.106 H 97.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A7921
RGBrgb(138, 121, 33)
HSLhsl(50, 61%, 34%)
HSVhsv(50, 76%, 54%)
CMYKcmyk(0%, 12.3%, 76.1%, 45.9%)
CIE-LABlab(50.91, -3.44, 47.70)
CIE-LCHlch(50.91, 47.82, 94.12°)
OKLaboklab(57.56% -0.0145 0.1051)
OKLCHoklch(57.56% 0.106 97.8)
XYZxyz(17.5940, 19.1887, 4.2156)
Luminance0.1919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7921 #21328A
analogous
#8A4421 #8A7921 #668A21
triadic
#8A7921 #218A79 #79218A
tetradic
#8A7921 #218A44 #21328A #8A2166
square
#8A7921 #218A44 #21328A #8A2166
split-complementary
#8A7921 #21668A #44218A
monochromatic
#272209 #594E15 #8A7921 #BBA42D #D5C050

Accessibility & contrast

On white

4.34
#8A7921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#8A7921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7921
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7921#FFFFFF#000000##000000
##8A79211.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#867611
Deuteranopia (green-blind)
#8A7C27
Tritanopia (blue-blind)
#956F68
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a7921;
/* rgb */ color: rgb(138, 121, 33);
/* oklch */ color: oklch(57.6% 0.106 97.8);
Tailwind
colors: {
  custom: {
    50: '#b09f63',
    500: '#8a7921',
    950: '#000000',
  },
}
SCSS
$custom: #8a7921;
$custom-light: #b09f63;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7921",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 33
  },
  "hsl": {
    "h": 50.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57564,
    "c": 0.10608,
    "h": 97.8
  },
  "luminance": 0.19188
}

Semantic roles & 50–950 ramp

primary
#8A7921
secondary
#4E5FB9
accent
#5DE543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7921

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

Preview Lab → · Contrast checker → · Palette generator →

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