#8A8B2F#8A8B2F

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

Color values

HEX#8A8B2F
RGBrgb(138, 139, 47)
HSLhsl(61, 49%, 36%)
HSVhsv(61, 66%, 55%)
CMYKcmyk(0.7%, 0%, 66.2%, 45.5%)
CIE-LABlab(56.16, -12.52, 47.19)
CIE-LCHlch(56.16, 48.82, 104.87°)
OKLaboklab(61.78% -0.0386 0.1066)
OKLCHoklch(61.78% 0.113 109.9)
XYZxyz(20.2276, 24.0743, 6.2700)
Luminance0.2407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B2F #302F8B
analogous
#8B5E2F #8A8B2F #5C8B2F
triadic
#8A8B2F #2F8A8B #8B2F8A
tetradic
#8A8B2F #2F8B5E #302F8B #8B2F5C
square
#8A8B2F #2F8B5E #302F8B #8B2F5C
split-complementary
#8A8B2F #2F5C8B #5E2F8B
monochromatic
#2F3010 #5D5D20 #8A8B2F #B7B93E #CBCC68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8B2F#FFFFFF#000000##000000
##8A8B2F1.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)
#968523
Deuteranopia (green-blind)
#978835
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8b2f;
/* rgb */ color: rgb(138, 139, 47);
/* oklch */ color: oklch(61.8% 0.113 109.9);
Tailwind
colors: {
  custom: {
    50: '#afac6d',
    500: '#8a8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b2f;
$custom-light: #afac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b2f",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 60.652,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61777,
    "c": 0.11335,
    "h": 109.9
  },
  "luminance": 0.24074
}

Semantic roles & 50–950 ramp

primary
#8A8B2F
secondary
#6463B3
accent
#4FD950
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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