#8A8D2B#8A8D2B

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

Color values

HEX#8A8D2B
RGBrgb(138, 141, 43)
HSLhsl(62, 53%, 36%)
HSVhsv(62, 70%, 55%)
CMYKcmyk(2.1%, 0%, 69.5%, 44.7%)
CIE-LABlab(56.71, -13.84, 49.42)
CIE-LCHlch(56.71, 51.32, 105.64°)
OKLaboklab(62.21% -0.0427 0.1106)
OKLCHoklch(62.21% 0.119 111.1)
XYZxyz(20.4428, 24.6280, 5.9618)
Luminance0.2463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D2B #2E2B8D
analogous
#8D5F2B #8A8D2B #598D2B
triadic
#8A8D2B #2B8A8D #8D2B8A
tetradic
#8A8D2B #2B8D5F #2E2B8D #8D2B59
square
#8A8D2B #2B8D5F #2E2B8D #8D2B59
split-complementary
#8A8D2B #2B598D #5F2B8D
monochromatic
#2E2F0E #5C5E1D #8A8D2B #B8BC39 #CCCF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8D2B#FFFFFF#000000##000000
##8A8D2B1.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)
#98871C
Deuteranopia (green-blind)
#998932
Tritanopia (blue-blind)
#948479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d2b;
/* rgb */ color: rgb(138, 141, 43);
/* oklch */ color: oklch(62.2% 0.119 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae6b',
    500: '#8a8d2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d2b;
$custom-light: #afae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d2b",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 61.837,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62206,
    "c": 0.11857,
    "h": 111.1
  },
  "luminance": 0.24627
}

Semantic roles & 50–950 ramp

primary
#8A8D2B
secondary
#615EB6
accent
#4BDD50
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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