#8A8738#8A8738

#8A8738 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.9% C 0.101 H 107.0°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8A8738
RGBrgb(138, 135, 56)
HSLhsl(58, 42%, 38%)
HSVhsv(58, 59%, 54%)
CMYKcmyk(0%, 2.2%, 59.4%, 45.9%)
CIE-LABlab(55.09, -9.73, 41.93)
CIE-LCHlch(55.09, 43.04, 103.06°)
OKLaboklab(60.95% -0.0296 0.0968)
OKLCHoklch(60.95% 0.101 107)
XYZxyz(19.8596, 23.0173, 7.1373)
Luminance0.2302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8738 #383B8A
analogous
#8A5E38 #8A8738 #648A38
triadic
#8A8738 #388A87 #87388A
tetradic
#8A8738 #388A5E #383B8A #8A3864
square
#8A8738 #388A5E #383B8A #8A3864
split-complementary
#8A8738 #38648A #5E388A
monochromatic
#333215 #5E5C26 #8A8738 #B5B24A #C7C475

Accessibility & contrast

On white

3.75
#8A8738 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#8A8738 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8738
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8738#FFFFFF#000000##000000
##8A87381.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92822F
Deuteranopia (green-blind)
#93853C
Tritanopia (blue-blind)
#937F76
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8738;
/* rgb */ color: rgb(138, 135, 56);
/* oklch */ color: oklch(60.9% 0.101 107.0);
Tailwind
colors: {
  custom: {
    50: '#aea972',
    500: '#8a8738',
    950: '#000000',
  },
}
SCSS
$custom: #8a8738;
$custom-light: #aea972;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8738",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 56
  },
  "hsl": {
    "h": 57.805,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.60949,
    "c": 0.10121,
    "h": 107
  },
  "luminance": 0.23017
}

Semantic roles & 50–950 ramp

primary
#8A8738
secondary
#6E70B0
accent
#5AD256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F08
muted
#807F7B

Preview Lab

Preview with #8A8738

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

Preview Lab → · Contrast checker → · Palette generator →

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