#8A7F21#8A7F21

#8A7F21 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.111 H 102.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A7F21
RGBrgb(138, 127, 33)
HSLhsl(54, 61%, 34%)
HSVhsv(54, 76%, 54%)
CMYKcmyk(0%, 8%, 76.1%, 45.9%)
CIE-LABlab(52.61, -6.78, 49.32)
CIE-LCHlch(52.61, 49.78, 97.83°)
OKLaboklab(58.92% -0.0239 0.1085)
OKLCHoklch(58.92% 0.111 102.4)
XYZxyz(18.3459, 20.6926, 4.4663)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F21 #212C8A
analogous
#8A4A21 #8A7F21 #608A21
triadic
#8A7F21 #218A7F #7F218A
tetradic
#8A7F21 #218A4A #212C8A #8A2160
square
#8A7F21 #218A4A #212C8A #8A2160
split-complementary
#8A7F21 #21608A #4A218A
monochromatic
#272409 #595215 #8A7F21 #BBAC2D #D5C750

Accessibility & contrast

On white

4.09
#8A7F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A7F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F21
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F21#FFFFFF#000000##000000
##8A7F211.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0F
Deuteranopia (green-blind)
#8E8028
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f21;
/* rgb */ color: rgb(138, 127, 33);
/* oklch */ color: oklch(58.9% 0.111 102.4);
Tailwind
colors: {
  custom: {
    50: '#afa364',
    500: '#8a7f21',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f21;
$custom-light: #afa364;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f21",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 53.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58917,
    "c": 0.11114,
    "h": 102.4
  },
  "luminance": 0.20692
}

Semantic roles & 50–950 ramp

primary
#8A7F21
secondary
#4E59B9
accent
#54E543
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F21

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

Preview Lab → · Contrast checker → · Palette generator →

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