#8A8730#8A8730

#8A8730 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.9% C 0.108 H 107.3°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A8730
RGBrgb(138, 135, 48)
HSLhsl(58, 48%, 36%)
HSVhsv(58, 65%, 54%)
CMYKcmyk(0%, 2.2%, 65.2%, 45.9%)
CIE-LABlab(55.02, -10.31, 45.55)
CIE-LCHlch(55.02, 46.70, 102.75°)
OKLaboklab(60.87% -0.0322 0.1033)
OKLCHoklch(60.87% 0.108 107.3)
XYZxyz(19.6794, 22.9452, 6.1880)
Luminance0.2294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8730 #30338A
analogous
#8A5A30 #8A8730 #608A30
triadic
#8A8730 #308A87 #87308A
tetradic
#8A8730 #308A5A #30338A #8A3060
square
#8A8730 #308A5A #30338A #8A3060
split-complementary
#8A8730 #30608A #5A308A
monochromatic
#2F2E10 #5D5B20 #8A8730 #B7B340 #CBC869

Accessibility & contrast

On white

3.76
#8A8730 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#8A8730 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8730
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8730#FFFFFF#000000##000000
##8A87301.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928225
Deuteranopia (green-blind)
#948535
Tritanopia (blue-blind)
#947E75
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8730;
/* rgb */ color: rgb(138, 135, 48);
/* oklch */ color: oklch(60.9% 0.108 107.3);
Tailwind
colors: {
  custom: {
    50: '#afa96d',
    500: '#8a8730',
    950: '#000000',
  },
}
SCSS
$custom: #8a8730;
$custom-light: #afa96d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8730",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 48
  },
  "hsl": {
    "h": 58,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60865,
    "c": 0.10819,
    "h": 107.3
  },
  "luminance": 0.22945
}

Semantic roles & 50–950 ramp

primary
#8A8730
secondary
#6466B2
accent
#54D850
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8730

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

Preview Lab → · Contrast checker → · Palette generator →

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