#8A8438#8A8438

#8A8438 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.3% C 0.098 H 104.8°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A8438
RGBrgb(138, 132, 56)
HSLhsl(56, 42%, 38%)
HSVhsv(56, 59%, 54%)
CMYKcmyk(0%, 4.3%, 59.4%, 45.9%)
CIE-LABlab(54.23, -8.09, 40.97)
CIE-LCHlch(54.23, 41.76, 101.17°)
OKLaboklab(60.26% -0.025 0.0947)
OKLCHoklch(60.26% 0.098 104.8)
XYZxyz(19.4469, 22.1920, 6.9997)
Luminance0.2219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8438 #383E8A
analogous
#8A5B38 #8A8438 #678A38
triadic
#8A8438 #388A84 #84388A
tetradic
#8A8438 #388A5B #383E8A #8A3867
square
#8A8438 #388A5B #383E8A #8A3867
split-complementary
#8A8438 #38678A #5B388A
monochromatic
#333115 #5E5A26 #8A8438 #B5AE4A #C7C175

Accessibility & contrast

On white

3.86
#8A8438 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#8A8438 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8438
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8438#FFFFFF#000000##000000
##8A84381.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8030
Deuteranopia (green-blind)
#91833C
Tritanopia (blue-blind)
#947C73
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8438;
/* rgb */ color: rgb(138, 132, 56);
/* oklch */ color: oklch(60.3% 0.098 104.8);
Tailwind
colors: {
  custom: {
    50: '#aea772',
    500: '#8a8438',
    950: '#000000',
  },
}
SCSS
$custom: #8a8438;
$custom-light: #aea772;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8438",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 56
  },
  "hsl": {
    "h": 55.61,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.60264,
    "c": 0.09796,
    "h": 104.8
  },
  "luminance": 0.22191
}

Semantic roles & 50–950 ramp

primary
#8A8438
secondary
#6E73B0
accent
#5FD256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F08
muted
#807F7B

Preview Lab

Preview with #8A8438

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

Preview Lab → · Contrast checker → · Palette generator →

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