#8A942D#8A942D

#8A942D is a light, vivid yellow. Relative luminance 0.268; OKLCH L 63.9% C 0.125 H 114.8°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A942D
RGBrgb(138, 148, 45)
HSLhsl(66, 53%, 38%)
HSVhsv(66, 70%, 58%)
CMYKcmyk(6.8%, 0%, 69.6%, 42%)
CIE-LABlab(58.76, -17.39, 50.68)
CIE-LCHlch(58.76, 53.58, 108.94°)
OKLaboklab(63.85% -0.0524 0.1136)
OKLCHoklch(63.85% 0.125 114.8)
XYZxyz(21.5454, 26.7729, 6.5148)
Luminance0.2677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A942D #372D94
analogous
#946A2D #8A942D #57942D
triadic
#8A942D #2D8A94 #942D8A
tetradic
#8A942D #2D946A #372D94 #942D57
square
#8A942D #2D946A #372D94 #942D57
split-complementary
#8A942D #2D5794 #6A2D94
monochromatic
#323610 #5E651F #8A942D #B6C33B #C8D26A

Accessibility & contrast

On white

3.30
#8A942D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#8A942D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A942D
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A942D#FFFFFF#000000##000000
##8A942D1.003.306.356.35
#FFFFFF3.301.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8D1D
Deuteranopia (green-blind)
#9E8E35
Tritanopia (blue-blind)
#938B7F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a942d;
/* rgb */ color: rgb(138, 148, 45);
/* oklch */ color: oklch(63.9% 0.125 114.8);
Tailwind
colors: {
  custom: {
    50: '#afb36c',
    500: '#8a942d',
    950: '#000000',
  },
}
SCSS
$custom: #8a942d;
$custom-light: #afb36c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a942d",
  "rgb": {
    "r": 138,
    "g": 148,
    "b": 45
  },
  "hsl": {
    "h": 65.825,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63854,
    "c": 0.12513,
    "h": 114.8
  },
  "luminance": 0.26773
}

Semantic roles & 50–950 ramp

primary
#8A942D
secondary
#6D64B8
accent
#4BDD59
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A942D

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

Preview Lab → · Contrast checker → · Palette generator →

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