#8A8E28#8A8E28

#8A8E28 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.4% C 0.122 H 111.7°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A8E28
RGBrgb(138, 142, 40)
HSLhsl(62, 56%, 36%)
HSVhsv(62, 72%, 56%)
CMYKcmyk(2.8%, 0%, 71.8%, 44.3%)
CIE-LABlab(56.98, -14.53, 50.87)
CIE-LCHlch(56.98, 52.91, 105.94°)
OKLaboklab(62.42% -0.045 0.1132)
OKLCHoklch(62.42% 0.122 111.7)
XYZxyz(20.5379, 24.9030, 5.7319)
Luminance0.2490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8E28 #2C288E
analogous
#8E5F28 #8A8E28 #578E28
triadic
#8A8E28 #288A8E #8E288A
tetradic
#8A8E28 #288E5F #2C288E #8E2857
square
#8A8E28 #288E5F #2C288E #8E2857
split-complementary
#8A8E28 #28578E #5F288E
monochromatic
#2D2F0D #5C5E1B #8A8E28 #B8BE35 #CDD25F

Accessibility & contrast

On white

3.51
#8A8E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#8A8E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8E28
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8E28#FFFFFF#000000##000000
##8A8E281.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#998717
Deuteranopia (green-blind)
#9A8A30
Tritanopia (blue-blind)
#94857A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8e28;
/* rgb */ color: rgb(138, 142, 40);
/* oklch */ color: oklch(62.4% 0.122 111.7);
Tailwind
colors: {
  custom: {
    50: '#afae69',
    500: '#8a8e28',
    950: '#000000',
  },
}
SCSS
$custom: #8a8e28;
$custom-light: #afae69;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8e28",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 62.353,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.62415,
    "c": 0.12176,
    "h": 111.7
  },
  "luminance": 0.24902
}

Semantic roles & 50–950 ramp

primary
#8A8E28
secondary
#5E5BB7
accent
#48DF4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8E28

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

Preview Lab → · Contrast checker → · Palette generator →

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