#8A9021#8A9021

#8A9021 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 62.8% C 0.128 H 112.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A9021
RGBrgb(138, 144, 33)
HSLhsl(63, 63%, 35%)
HSVhsv(63, 77%, 56%)
CMYKcmyk(4.2%, 0%, 77.1%, 43.5%)
CIE-LABlab(57.52, -15.93, 53.92)
CIE-LCHlch(57.52, 56.22, 106.46°)
OKLaboklab(62.83% -0.0495 0.1183)
OKLCHoklch(62.83% 0.128 112.7)
XYZxyz(20.7297, 25.4601, 5.2608)
Luminance0.2546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9021 #272190
analogous
#905E21 #8A9021 #539021
triadic
#8A9021 #218A90 #90218A
tetradic
#8A9021 #21905E #272190 #902153
square
#8A9021 #21905E #272190 #902153
split-complementary
#8A9021 #215390 #5E2190
monochromatic
#2B2C0A #5A5E16 #8A9021 #BAC22C #D1D854

Accessibility & contrast

On white

3.45
#8A9021 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#8A9021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9021
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9021#FFFFFF#000000##000000
##8A90211.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8905
Deuteranopia (green-blind)
#9B8B2B
Tritanopia (blue-blind)
#94877B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a9021;
/* rgb */ color: rgb(138, 144, 33);
/* oklch */ color: oklch(62.8% 0.128 112.7);
Tailwind
colors: {
  custom: {
    50: '#afb066',
    500: '#8a9021',
    950: '#000000',
  },
}
SCSS
$custom: #8a9021;
$custom-light: #afb066;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9021",
  "rgb": {
    "r": 138,
    "g": 144,
    "b": 33
  },
  "hsl": {
    "h": 63.243,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62834,
    "c": 0.12824,
    "h": 112.7
  },
  "luminance": 0.2546
}

Semantic roles & 50–950 ramp

primary
#8A9021
secondary
#5751BB
accent
#42E64B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A9021

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

Preview Lab → · Contrast checker → · Palette generator →

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