#8A9229#8A9229

#8A9229 is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.4% C 0.126 H 113.8°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A9229
RGBrgb(138, 146, 41)
HSLhsl(65, 56%, 37%)
HSVhsv(65, 72%, 57%)
CMYKcmyk(5.5%, 0%, 71.9%, 42.7%)
CIE-LABlab(58.15, -16.58, 51.64)
CIE-LCHlch(58.15, 54.23, 107.80°)
OKLaboklab(63.36% -0.0506 0.1149)
OKLCHoklch(63.36% 0.126 113.8)
XYZxyz(21.1610, 26.1216, 6.0246)
Luminance0.2612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9229 #312992
analogous
#926629 #8A9229 #569229
triadic
#8A9229 #298A92 #92298A
tetradic
#8A9229 #299266 #312992 #922956
square
#8A9229 #299266 #312992 #922956
split-complementary
#8A9229 #295692 #662992
monochromatic
#30320E #5D621C #8A9229 #B7C236 #CAD362

Accessibility & contrast

On white

3.37
#8A9229 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#8A9229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9229
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9229#FFFFFF#000000##000000
##8A92291.003.376.226.22
#FFFFFF3.371.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B17
Deuteranopia (green-blind)
#9D8D31
Tritanopia (blue-blind)
#93897D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a9229;
/* rgb */ color: rgb(138, 146, 41);
/* oklch */ color: oklch(63.4% 0.126 113.8);
Tailwind
colors: {
  custom: {
    50: '#afb16a',
    500: '#8a9229',
    950: '#000000',
  },
}
SCSS
$custom: #8a9229;
$custom-light: #afb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9229",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 41
  },
  "hsl": {
    "h": 64.571,
    "s": 56.15,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63355,
    "c": 0.12558,
    "h": 113.8
  },
  "luminance": 0.26121
}

Semantic roles & 50–950 ramp

primary
#8A9229
secondary
#655EB9
accent
#48DF54
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A9229

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

Preview Lab → · Contrast checker → · Palette generator →

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