#8A9042#8A9042

#8A9042 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.1% C 0.102 H 112.9°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A9042
RGBrgb(138, 144, 66)
HSLhsl(65, 37%, 41%)
HSVhsv(65, 54%, 56%)
CMYKcmyk(4.2%, 0%, 54.2%, 43.5%)
CIE-LABlab(57.79, -13.71, 40.13)
CIE-LCHlch(57.79, 42.41, 108.87°)
OKLaboklab(63.14% -0.0398 0.0941)
OKLCHoklch(63.14% 0.102 112.9)
XYZxyz(21.4383, 25.7435, 8.9929)
Luminance0.2574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9042 #484290
analogous
#906F42 #8A9042 #639042
triadic
#8A9042 #428A90 #90428A
tetradic
#8A9042 #42906F #484290 #904263
square
#8A9042 #42906F #484290 #904263
split-complementary
#8A9042 #426390 #6F4290
monochromatic
#3A3C1C #62662F #8A9042 #ADB45B #C2C785

Accessibility & contrast

On white

3.42
#8A9042 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#8A9042 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9042
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9042#FFFFFF#000000##000000
##8A90421.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A3A
Deuteranopia (green-blind)
#9A8C46
Tritanopia (blue-blind)
#92887F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a9042;
/* rgb */ color: rgb(138, 144, 66);
/* oklch */ color: oklch(63.1% 0.102 112.9);
Tailwind
colors: {
  custom: {
    50: '#aeb079',
    500: '#8a9042',
    950: '#000000',
  },
}
SCSS
$custom: #8a9042;
$custom-light: #aeb079;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9042",
  "rgb": {
    "r": 138,
    "g": 144,
    "b": 66
  },
  "hsl": {
    "h": 64.615,
    "s": 37.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.63139,
    "c": 0.10219,
    "h": 112.9
  },
  "luminance": 0.25743
}

Semantic roles & 50–950 ramp

primary
#8A9042
secondary
#807CB2
accent
#5BCD63
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A9042

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

Preview Lab → · Contrast checker → · Palette generator →

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