#8A8A38#8A8A38

#8A8A38 is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 61.6% C 0.105 H 109.1°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A8A38
RGBrgb(138, 138, 56)
HSLhsl(60, 42%, 38%)
HSVhsv(60, 59%, 54%)
CMYKcmyk(0%, 0%, 59.4%, 45.9%)
CIE-LABlab(55.95, -11.35, 42.89)
CIE-LCHlch(55.95, 44.36, 104.82°)
OKLaboklab(61.64% -0.0342 0.0988)
OKLCHoklch(61.64% 0.105 109.1)
XYZxyz(20.2841, 23.8663, 7.2788)
Luminance0.2387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A38 #38388A
analogous
#8A6138 #8A8A38 #618A38
triadic
#8A8A38 #388A8A #8A388A
tetradic
#8A8A38 #388A61 #38388A #8A3861
square
#8A8A38 #388A61 #38388A #8A3861
split-complementary
#8A8A38 #38618A #61388A
monochromatic
#333315 #5E5E26 #8A8A38 #B5B54A #C7C775

Accessibility & contrast

On white

3.64
#8A8A38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8A8A38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A38
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A38#FFFFFF#000000##000000
##8A8A381.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#94852F
Deuteranopia (green-blind)
#96873D
Tritanopia (blue-blind)
#938278
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a38;
/* rgb */ color: rgb(138, 138, 56);
/* oklch */ color: oklch(61.6% 0.105 109.1);
Tailwind
colors: {
  custom: {
    50: '#aeac72',
    500: '#8a8a38',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a38;
$custom-light: #aeac72;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a38",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.61637,
    "c": 0.10458,
    "h": 109.1
  },
  "luminance": 0.23866
}

Semantic roles & 50–950 ramp

primary
#8A8A38
secondary
#6E6EB0
accent
#56D256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8A8A38

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

Preview Lab → · Contrast checker → · Palette generator →

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