#8A8D2C#8A8D2C

#8A8D2C is a light, moderate yellow. Relative luminance 0.246; OKLCH L 62.2% C 0.118 H 111.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A8D2C
RGBrgb(138, 141, 44)
HSLhsl(62, 52%, 36%)
HSVhsv(62, 69%, 55%)
CMYKcmyk(2.1%, 0%, 68.8%, 44.7%)
CIE-LABlab(56.72, -13.78, 49.02)
CIE-LCHlch(56.72, 50.92, 105.70°)
OKLaboklab(62.21% -0.0424 0.1099)
OKLCHoklch(62.21% 0.118 111.1)
XYZxyz(20.4614, 24.6354, 6.0596)
Luminance0.2464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D2C #2F2C8D
analogous
#8D602C #8A8D2C #5A8D2C
triadic
#8A8D2C #2C8A8D #8D2C8A
tetradic
#8A8D2C #2C8D60 #2F2C8D #8D2C5A
square
#8A8D2C #2C8D60 #2F2C8D #8D2C5A
split-complementary
#8A8D2C #2C5A8D #602C8D
monochromatic
#2F300F #5C5E1D #8A8D2C #B8BC3B #CCCF65

Accessibility & contrast

On white

3.54
#8A8D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#8A8D2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D2C
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D2C#FFFFFF#000000##000000
##8A8D2C1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871E
Deuteranopia (green-blind)
#998933
Tritanopia (blue-blind)
#94847A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d2c;
/* rgb */ color: rgb(138, 141, 44);
/* oklch */ color: oklch(62.2% 0.118 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae6b',
    500: '#8a8d2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d2c;
$custom-light: #afae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d2c",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 61.856,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62214,
    "c": 0.11784,
    "h": 111.1
  },
  "luminance": 0.24635
}

Semantic roles & 50–950 ramp

primary
#8A8D2C
secondary
#6260B5
accent
#4CDC50
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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