#8A8B2E#8A8B2E

#8A8B2E is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.114 H 109.9°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A8B2E
RGBrgb(138, 139, 46)
HSLhsl(61, 50%, 36%)
HSVhsv(61, 67%, 55%)
CMYKcmyk(0.7%, 0%, 66.9%, 45.5%)
CIE-LABlab(56.15, -12.59, 47.60)
CIE-LCHlch(56.15, 49.24, 104.81°)
OKLaboklab(61.77% -0.0389 0.1073)
OKLCHoklch(61.77% 0.114 109.9)
XYZxyz(20.2076, 24.0663, 6.1650)
Luminance0.2407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B2E #2F2E8B
analogous
#8B5E2E #8A8B2E #5C8B2E
triadic
#8A8B2E #2E8A8B #8B2E8A
tetradic
#8A8B2E #2E8B5E #2F2E8B #8B2E5C
square
#8A8B2E #2E8B5E #2F2E8B #8B2E5C
split-complementary
#8A8B2E #2E5C8B #5E2E8B
monochromatic
#2F2F10 #5C5D1F #8A8B2E #B8B93D #CCCD67

Accessibility & contrast

On white

3.61
#8A8B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8B2E#FFFFFF#000000##000000
##8A8B2E1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968521
Deuteranopia (green-blind)
#978834
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8b2e;
/* rgb */ color: rgb(138, 139, 46);
/* oklch */ color: oklch(61.8% 0.114 109.9);
Tailwind
colors: {
  custom: {
    50: '#afac6c',
    500: '#8a8b2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b2e;
$custom-light: #afac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b2e",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 60.645,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61768,
    "c": 0.11413,
    "h": 109.9
  },
  "luminance": 0.24066
}

Semantic roles & 50–950 ramp

primary
#8A8B2E
secondary
#6261B3
accent
#4EDA50
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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