#8A8B28#8A8B28

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

Color values

HEX#8A8B28
RGBrgb(138, 139, 40)
HSLhsl(61, 55%, 35%)
HSVhsv(61, 71%, 55%)
CMYKcmyk(0.7%, 0%, 71.2%, 45.5%)
CIE-LABlab(56.11, -12.94, 50.02)
CIE-LCHlch(56.11, 51.66, 104.51°)
OKLaboklab(61.72% -0.0405 0.1113)
OKLCHoklch(61.72% 0.118 110)
XYZxyz(20.0975, 24.0223, 5.5852)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8B28 #29288B
analogous
#8B5A28 #8A8B28 #598B28
triadic
#8A8B28 #288A8B #8B288A
tetradic
#8A8B28 #288B5A #29288B #8B2859
square
#8A8B28 #288B5A #29288B #8B2859
split-complementary
#8A8B28 #28598B #5A288B
monochromatic
#2C2C0D #5B5B1A #8A8B28 #B9BB36 #CFD05D

Accessibility & contrast

On white

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

On black

5.80
#8A8B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8B28
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8B28#FFFFFF#000000##000000
##8A8B281.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968518
Deuteranopia (green-blind)
#97882F
Tritanopia (blue-blind)
#948278
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8b28;
/* rgb */ color: rgb(138, 139, 40);
/* oklch */ color: oklch(61.7% 0.118 110.0);
Tailwind
colors: {
  custom: {
    50: '#afac69',
    500: '#8a8b28',
    950: '#000000',
  },
}
SCSS
$custom: #8a8b28;
$custom-light: #afac69;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8b28",
  "rgb": {
    "r": 138,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 60.606,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61719,
    "c": 0.11848,
    "h": 110
  },
  "luminance": 0.24022
}

Semantic roles & 50–950 ramp

primary
#8A8B28
secondary
#5A59B6
accent
#49DF4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8B28

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

Preview Lab → · Contrast checker → · Palette generator →

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