#8A7D28#8A7D28

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

Color values

HEX#8A7D28
RGBrgb(138, 125, 40)
HSLhsl(52, 55%, 35%)
HSVhsv(52, 71%, 54%)
CMYKcmyk(0%, 9.4%, 71%, 45.9%)
CIE-LABlab(52.09, -5.31, 46.01)
CIE-LCHlch(52.09, 46.31, 96.58°)
OKLaboklab(58.52% -0.019 0.1029)
OKLCHoklch(58.52% 0.105 100.5)
XYZxyz(18.1987, 20.2245, 4.9522)
Luminance0.2022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D28 #28358A
analogous
#8A4C28 #8A7D28 #668A28
triadic
#8A7D28 #288A7D #7D288A
tetradic
#8A7D28 #288A4C #28358A #8A2866
square
#8A7D28 #288A4C #28358A #8A2866
split-complementary
#8A7D28 #28668A #4C288A
monochromatic
#2B270C #5B521A #8A7D28 #B9A836 #D0C15D

Accessibility & contrast

On white

4.16
#8A7D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7D28#FFFFFF#000000##000000
##8A7D281.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791C
Deuteranopia (green-blind)
#8D7E2D
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d28;
/* rgb */ color: rgb(138, 125, 40);
/* oklch */ color: oklch(58.5% 0.105 100.5);
Tailwind
colors: {
  custom: {
    50: '#afa267',
    500: '#8a7d28',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d28;
$custom-light: #afa267;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d28",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 52.041,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58518,
    "c": 0.10462,
    "h": 100.5
  },
  "luminance": 0.20224
}

Semantic roles & 50–950 ramp

primary
#8A7D28
secondary
#5965B5
accent
#5DDE49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D28

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

Preview Lab → · Contrast checker → · Palette generator →

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