#8A8A28#8A8A28

#8A8A28 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.117 H 109.4°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8A8A28
RGBrgb(138, 138, 40)
HSLhsl(60, 55%, 35%)
HSVhsv(60, 71%, 54%)
CMYKcmyk(0%, 0%, 71%, 45.9%)
CIE-LABlab(55.82, -12.41, 49.73)
CIE-LCHlch(55.82, 51.26, 104.01°)
OKLaboklab(61.49% -0.039 0.1107)
OKLCHoklch(61.49% 0.117 109.4)
XYZxyz(19.9534, 23.7340, 5.5371)
Luminance0.2373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A28 #28288A
analogous
#8A5928 #8A8A28 #598A28
triadic
#8A8A28 #288A8A #8A288A
tetradic
#8A8A28 #288A59 #28288A #8A2859
square
#8A8A28 #288A59 #28288A #8A2859
split-complementary
#8A8A28 #28598A #59288A
monochromatic
#2B2B0C #5B5B1A #8A8A28 #B9B936 #D0D05D

Accessibility & contrast

On white

3.65
#8A8A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8A8A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A28
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A28#FFFFFF#000000##000000
##8A8A281.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958418
Deuteranopia (green-blind)
#97872F
Tritanopia (blue-blind)
#948177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a28;
/* rgb */ color: rgb(138, 138, 40);
/* oklch */ color: oklch(61.5% 0.117 109.4);
Tailwind
colors: {
  custom: {
    50: '#afab69',
    500: '#8a8a28',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a28;
$custom-light: #afab69;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a28",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61488,
    "c": 0.11741,
    "h": 109.4
  },
  "luminance": 0.23733
}

Semantic roles & 50–950 ramp

primary
#8A8A28
secondary
#5959B5
accent
#49DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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