#8A8B2B#8A8B2B

#8A8B2B is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.116 H 110.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A8B2B
RGBrgb(138, 139, 43)
HSLhsl(61, 53%, 36%)
HSVhsv(61, 69%, 55%)
CMYKcmyk(0.7%, 0%, 69.1%, 45.5%)
CIE-LABlab(56.13, -12.77, 48.83)
CIE-LCHlch(56.13, 50.48, 104.66°)
OKLaboklab(61.74% -0.0397 0.1094)
OKLCHoklch(61.74% 0.116 110)
XYZxyz(20.1506, 24.0435, 5.8644)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B2B #2C2B8B
analogous
#8B5C2B #8A8B2B #5A8B2B
triadic
#8A8B2B #2B8A8B #8B2B8A
tetradic
#8A8B2B #2B8B5C #2C2B8B #8B2B5A
square
#8A8B2B #2B8B5C #2C2B8B #8B2B5A
split-complementary
#8A8B2B #2B5A8B #5C2B8B
monochromatic
#2D2E0E #5C5C1D #8A8B2B #B8BA39 #CDCE62

Accessibility & contrast

On white

3.62
#8A8B2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8A8B2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B2B
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B2B#FFFFFF#000000##000000
##8A8B2B1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#96851D
Deuteranopia (green-blind)
#978832
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8b2b;
/* rgb */ color: rgb(138, 139, 43);
/* oklch */ color: oklch(61.7% 0.116 110.0);
Tailwind
colors: {
  custom: {
    50: '#afac6a',
    500: '#8a8b2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b2b;
$custom-light: #afac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b2b",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 60.625,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61743,
    "c": 0.11637,
    "h": 110
  },
  "luminance": 0.24043
}

Semantic roles & 50–950 ramp

primary
#8A8B2B
secondary
#5E5DB5
accent
#4CDC4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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