#8A8338#8A8338

#8A8338 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.0% C 0.097 H 104.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8A8338
RGBrgb(138, 131, 56)
HSLhsl(55, 42%, 38%)
HSVhsv(55, 59%, 54%)
CMYKcmyk(0%, 5.1%, 59.4%, 45.9%)
CIE-LABlab(53.94, -7.54, 40.65)
CIE-LCHlch(53.94, 41.34, 100.51°)
OKLaboklab(60.04% -0.0234 0.094)
OKLCHoklch(60.04% 0.097 104)
XYZxyz(19.3120, 21.9221, 6.9547)
Luminance0.2192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8338 #383F8A
analogous
#8A5A38 #8A8338 #688A38
triadic
#8A8338 #388A83 #83388A
tetradic
#8A8338 #388A5A #383F8A #8A3868
square
#8A8338 #388A5A #383F8A #8A3868
split-complementary
#8A8338 #38688A #5A388A
monochromatic
#333015 #5E5A26 #8A8338 #B5AC4A #C7C075

Accessibility & contrast

On white

3.90
#8A8338 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#8A8338 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8338
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8338#FFFFFF#000000##000000
##8A83381.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F30
Deuteranopia (green-blind)
#90833C
Tritanopia (blue-blind)
#947B73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8338;
/* rgb */ color: rgb(138, 131, 56);
/* oklch */ color: oklch(60.0% 0.097 104.0);
Tailwind
colors: {
  custom: {
    50: '#aea671',
    500: '#8a8338',
    950: '#000000',
  },
}
SCSS
$custom: #8a8338;
$custom-light: #aea671;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8338",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 56
  },
  "hsl": {
    "h": 54.878,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.60037,
    "c": 0.09691,
    "h": 104
  },
  "luminance": 0.21921
}

Semantic roles & 50–950 ramp

primary
#8A8338
secondary
#6E73B0
accent
#60D256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F08
muted
#807F7B

Preview Lab

Preview with #8A8338

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

Preview Lab → · Contrast checker → · Palette generator →

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