#8A8D28#8A8D28

#8A8D28 is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.2% C 0.121 H 111.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A8D28
RGBrgb(138, 141, 40)
HSLhsl(62, 56%, 35%)
HSVhsv(62, 72%, 55%)
CMYKcmyk(2.1%, 0%, 71.6%, 44.7%)
CIE-LABlab(56.69, -14.01, 50.59)
CIE-LCHlch(56.69, 52.49, 105.48°)
OKLaboklab(62.18% -0.0435 0.1125)
OKLCHoklch(62.18% 0.121 111.1)
XYZxyz(20.3898, 24.6068, 5.6826)
Luminance0.2461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D28 #2B288D
analogous
#8D5D28 #8A8D28 #578D28
triadic
#8A8D28 #288A8D #8D288A
tetradic
#8A8D28 #288D5D #2B288D #8D2857
square
#8A8D28 #288D5D #2B288D #8D2857
split-complementary
#8A8D28 #28578D #5D288D
monochromatic
#2D2E0D #5B5D1A #8A8D28 #B9BD36 #CED15E

Accessibility & contrast

On white

3.55
#8A8D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#8A8D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D28
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D28#FFFFFF#000000##000000
##8A8D281.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988717
Deuteranopia (green-blind)
#998930
Tritanopia (blue-blind)
#948479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d28;
/* rgb */ color: rgb(138, 141, 40);
/* oklch */ color: oklch(62.2% 0.121 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae69',
    500: '#8a8d28',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d28;
$custom-light: #afae69;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d28",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 61.782,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62183,
    "c": 0.12065,
    "h": 111.1
  },
  "luminance": 0.24606
}

Semantic roles & 50–950 ramp

primary
#8A8D28
secondary
#5D5AB7
accent
#49DF4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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