#8A8B2C#8A8B2C

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

Color values

HEX#8A8B2C
RGBrgb(138, 139, 44)
HSLhsl(61, 52%, 36%)
HSVhsv(61, 68%, 55%)
CMYKcmyk(0.7%, 0%, 68.3%, 45.5%)
CIE-LABlab(56.14, -12.71, 48.43)
CIE-LCHlch(56.14, 50.07, 104.71°)
OKLaboklab(61.75% -0.0394 0.1087)
OKLCHoklch(61.75% 0.116 109.9)
XYZxyz(20.1691, 24.0509, 5.9622)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B2C #2D2C8B
analogous
#8B5C2C #8A8B2C #5A8B2C
triadic
#8A8B2C #2C8A8B #8B2C8A
tetradic
#8A8B2C #2C8B5C #2D2C8B #8B2C5A
square
#8A8B2C #2C8B5C #2D2C8B #8B2C5A
split-complementary
#8A8B2C #2C5A8B #5C2C8B
monochromatic
#2E2E0F #5C5D1D #8A8B2C #B8B93B #CDCE64

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8B2C#FFFFFF#000000##000000
##8A8B2C1.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)
#96851E
Deuteranopia (green-blind)
#978832
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8b2c;
/* rgb */ color: rgb(138, 139, 44);
/* oklch */ color: oklch(61.8% 0.116 109.9);
Tailwind
colors: {
  custom: {
    50: '#afac6b',
    500: '#8a8b2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b2c;
$custom-light: #afac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b2c",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 60.632,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61751,
    "c": 0.11563,
    "h": 109.9
  },
  "luminance": 0.2405
}

Semantic roles & 50–950 ramp

primary
#8A8B2C
secondary
#605FB4
accent
#4CDB4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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