#8A8F35#8A8F35

#8A8F35 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 62.8% C 0.113 H 112.2°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8A8F35
RGBrgb(138, 143, 53)
HSLhsl(63, 46%, 38%)
HSVhsv(63, 63%, 56%)
CMYKcmyk(3.5%, 0%, 62.9%, 43.9%)
CIE-LABlab(57.37, -14.24, 45.82)
CIE-LCHlch(57.37, 47.98, 107.27°)
OKLaboklab(62.76% -0.0428 0.1046)
OKLCHoklch(62.76% 0.113 112.2)
XYZxyz(20.9469, 25.3057, 7.1485)
Luminance0.2530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F35 #3A358F
analogous
#8F6735 #8A8F35 #5D8F35
triadic
#8A8F35 #358A8F #8F358A
tetradic
#8A8F35 #358F67 #3A358F #8F355D
square
#8A8F35 #358F67 #3A358F #8F355D
split-complementary
#8A8F35 #355D8F #67358F
monochromatic
#343614 #5F6224 #8A8F35 #B4BB47 #C6CB73

Accessibility & contrast

On white

3.46
#8A8F35 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#8A8F35 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F35
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F35#FFFFFF#000000##000000
##8A8F351.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#99892A
Deuteranopia (green-blind)
#9A8B3B
Tritanopia (blue-blind)
#93877C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a8f35;
/* rgb */ color: rgb(138, 143, 53);
/* oklch */ color: oklch(62.8% 0.113 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf71',
    500: '#8a8f35',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f35;
$custom-light: #afaf71;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f35",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 53
  },
  "hsl": {
    "h": 63.333,
    "s": 45.918,
    "l": 38.431
  },
  "oklch": {
    "l": 0.6276,
    "c": 0.11302,
    "h": 112.2
  },
  "luminance": 0.25305
}

Semantic roles & 50–950 ramp

primary
#8A8F35
secondary
#706CB4
accent
#52D65A
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8A8F35

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

Preview Lab → · Contrast checker → · Palette generator →

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