#8A9522#8A9522

#8A9522 is a light, vivid yellow. Relative luminance 0.270; OKLCH L 64.0% C 0.133 H 115.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A9522
RGBrgb(138, 149, 34)
HSLhsl(66, 63%, 36%)
HSVhsv(66, 77%, 58%)
CMYKcmyk(7.4%, 0%, 77.2%, 41.6%)
CIE-LABlab(58.99, -18.48, 54.94)
CIE-LCHlch(58.99, 57.97, 108.60°)
OKLaboklab(64.01% -0.0565 0.1207)
OKLCHoklch(64.01% 0.133 115.1)
XYZxyz(21.5180, 27.0140, 5.5938)
Luminance0.2701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9522 #2D2295
analogous
#956622 #8A9522 #509522
triadic
#8A9522 #228A95 #95228A
tetradic
#8A9522 #229566 #2D2295 #952250
square
#8A9522 #229566 #2D2295 #952250
split-complementary
#8A9522 #225095 #662295
monochromatic
#2E310B #5C6317 #8A9522 #B8C72D #CDD958

Accessibility & contrast

On white

3.28
#8A9522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#8A9522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9522
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9522#FFFFFF#000000##000000
##8A95221.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D05
Deuteranopia (green-blind)
#9F8F2C
Tritanopia (blue-blind)
#938C7F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a9522;
/* rgb */ color: rgb(138, 149, 34);
/* oklch */ color: oklch(64.0% 0.133 115.1);
Tailwind
colors: {
  custom: {
    50: '#afb467',
    500: '#8a9522',
    950: '#000000',
  },
}
SCSS
$custom: #8a9522;
$custom-light: #afb467;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9522",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 34
  },
  "hsl": {
    "h": 65.739,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.64011,
    "c": 0.13323,
    "h": 115.1
  },
  "luminance": 0.27014
}

Semantic roles & 50–950 ramp

primary
#8A9522
secondary
#6056BD
accent
#42E652
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9522

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

Preview Lab → · Contrast checker → · Palette generator →

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