#8A9321#8A9321

#8A9321 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.5% C 0.132 H 114.2°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A9321
RGBrgb(138, 147, 33)
HSLhsl(65, 63%, 35%)
HSVhsv(65, 78%, 58%)
CMYKcmyk(6.1%, 0%, 77.6%, 42.4%)
CIE-LABlab(58.40, -17.50, 54.72)
CIE-LCHlch(58.40, 57.45, 107.73°)
OKLaboklab(63.54% -0.0539 0.12)
OKLCHoklch(63.54% 0.132 114.2)
XYZxyz(21.1901, 26.3809, 5.4143)
Luminance0.2638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9321 #2A2193
analogous
#936321 #8A9321 #519321
triadic
#8A9321 #218A93 #93218A
tetradic
#8A9321 #219363 #2A2193 #932151
square
#8A9321 #219363 #2A2193 #932151
split-complementary
#8A9321 #215193 #632193
monochromatic
#2C2F0B #5B6116 #8A9321 #B9C52C #CFD955

Accessibility & contrast

On white

3.35
#8A9321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#8A9321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9321
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9321#FFFFFF#000000##000000
##8A93211.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B03
Deuteranopia (green-blind)
#9E8D2B
Tritanopia (blue-blind)
#948A7E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a9321;
/* rgb */ color: rgb(138, 147, 33);
/* oklch */ color: oklch(63.5% 0.132 114.2);
Tailwind
colors: {
  custom: {
    50: '#afb266',
    500: '#8a9321',
    950: '#000000',
  },
}
SCSS
$custom: #8a9321;
$custom-light: #afb266;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9321",
  "rgb": {
    "r": 138,
    "g": 147,
    "b": 33
  },
  "hsl": {
    "h": 64.737,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63536,
    "c": 0.13154,
    "h": 114.2
  },
  "luminance": 0.26381
}

Semantic roles & 50–950 ramp

primary
#8A9321
secondary
#5B53BD
accent
#41E64E
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A9321

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

Preview Lab → · Contrast checker → · Palette generator →

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