#8A942F#8A942F

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

Color values

HEX#8A942F
RGBrgb(138, 148, 47)
HSLhsl(66, 52%, 38%)
HSVhsv(66, 68%, 58%)
CMYKcmyk(6.8%, 0%, 68.2%, 42%)
CIE-LABlab(58.78, -17.27, 49.88)
CIE-LCHlch(58.78, 52.79, 109.10°)
OKLaboklab(63.87% -0.0519 0.1123)
OKLCHoklch(63.87% 0.124 114.8)
XYZxyz(21.5848, 26.7887, 6.7224)
Luminance0.2679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A942F #392F94
analogous
#946B2F #8A942F #57942F
triadic
#8A942F #2F8A94 #942F8A
tetradic
#8A942F #2F946B #392F94 #942F57
square
#8A942F #2F946B #392F94 #942F57
split-complementary
#8A942F #2F5794 #6B2F94
monochromatic
#333711 #5F6620 #8A942F #B5C23E #C7D16D

Accessibility & contrast

On white

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

On black

6.36
#8A942F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A942F
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A942F#FFFFFF#000000##000000
##8A942F1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8D20
Deuteranopia (green-blind)
#9E8E36
Tritanopia (blue-blind)
#938B80
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a942f;
/* rgb */ color: rgb(138, 148, 47);
/* oklch */ color: oklch(63.9% 0.124 114.8);
Tailwind
colors: {
  custom: {
    50: '#afb36e',
    500: '#8a942f',
    950: '#000000',
  },
}
SCSS
$custom: #8a942f;
$custom-light: #afb36e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a942f",
  "rgb": {
    "r": 138,
    "g": 148,
    "b": 47
  },
  "hsl": {
    "h": 65.941,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.6387,
    "c": 0.12367,
    "h": 114.8
  },
  "luminance": 0.26788
}

Semantic roles & 50–950 ramp

primary
#8A942F
secondary
#6F67B8
accent
#4DDB5B
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A942F

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

Preview Lab → · Contrast checker → · Palette generator →

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