#8A9128#8A9128

#8A9128 is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.1% C 0.125 H 113.2°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A9128
RGBrgb(138, 145, 40)
HSLhsl(64, 57%, 36%)
HSVhsv(64, 72%, 57%)
CMYKcmyk(4.8%, 0%, 72.4%, 43.1%)
CIE-LABlab(57.85, -16.11, 51.73)
CIE-LCHlch(57.85, 54.18, 107.30°)
OKLaboklab(63.11% -0.0494 0.115)
OKLCHoklch(63.11% 0.125 113.2)
XYZxyz(20.9903, 25.8077, 5.8827)
Luminance0.2581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9128 #2F2891
analogous
#916428 #8A9128 #569128
triadic
#8A9128 #288A91 #91288A
tetradic
#8A9128 #289164 #2F2891 #912856
square
#8A9128 #289164 #2F2891 #912856
split-complementary
#8A9128 #285691 #642891
monochromatic
#2F310E #5C611B #8A9128 #B8C135 #CCD360

Accessibility & contrast

On white

3.41
#8A9128 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#8A9128 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9128
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9128#FFFFFF#000000##000000
##8A91281.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A15
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#93887D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a9128;
/* rgb */ color: rgb(138, 145, 40);
/* oklch */ color: oklch(63.1% 0.125 113.2);
Tailwind
colors: {
  custom: {
    50: '#afb169',
    500: '#8a9128',
    950: '#000000',
  },
}
SCSS
$custom: #8a9128;
$custom-light: #afb169;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9128",
  "rgb": {
    "r": 138,
    "g": 145,
    "b": 40
  },
  "hsl": {
    "h": 64,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63114,
    "c": 0.1251,
    "h": 113.2
  },
  "luminance": 0.25807
}

Semantic roles & 50–950 ramp

primary
#8A9128
secondary
#625CB9
accent
#48E052
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A9128

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

Preview Lab → · Contrast checker → · Palette generator →

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