#8A7D21#8A7D21

#8A7D21 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.109 H 101.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A7D21
RGBrgb(138, 125, 33)
HSLhsl(53, 61%, 34%)
HSVhsv(53, 76%, 54%)
CMYKcmyk(0%, 9.4%, 76.1%, 45.9%)
CIE-LABlab(52.04, -5.67, 48.78)
CIE-LCHlch(52.04, 49.11, 96.63°)
OKLaboklab(58.46% -0.0208 0.1074)
OKLCHoklch(58.46% 0.109 101)
XYZxyz(18.0902, 20.1811, 4.3810)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D21 #212E8A
analogous
#8A4821 #8A7D21 #628A21
triadic
#8A7D21 #218A7D #7D218A
tetradic
#8A7D21 #218A48 #212E8A #8A2162
square
#8A7D21 #218A48 #212E8A #8A2162
split-complementary
#8A7D21 #21628A #48218A
monochromatic
#272409 #595015 #8A7D21 #BBAA2D #D5C550

Accessibility & contrast

On white

4.17
#8A7D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A7D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D21
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D21#FFFFFF#000000##000000
##8A7D211.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897910
Deuteranopia (green-blind)
#8D7E27
Tritanopia (blue-blind)
#95746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d21;
/* rgb */ color: rgb(138, 125, 33);
/* oklch */ color: oklch(58.5% 0.109 101.0);
Tailwind
colors: {
  custom: {
    50: '#b0a264',
    500: '#8a7d21',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d21;
$custom-light: #b0a264;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d21",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 52.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58464,
    "c": 0.10938,
    "h": 101
  },
  "luminance": 0.2018
}

Semantic roles & 50–950 ramp

primary
#8A7D21
secondary
#4E5BB9
accent
#57E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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