#8A8F22#8A8F22

#8A8F22 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.6% C 0.127 H 112.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A8F22
RGBrgb(138, 143, 34)
HSLhsl(63, 62%, 35%)
HSVhsv(63, 76%, 56%)
CMYKcmyk(3.5%, 0%, 76.2%, 43.9%)
CIE-LABlab(57.24, -15.36, 53.31)
CIE-LCHlch(57.24, 55.48, 106.08°)
OKLaboklab(62.61% -0.0478 0.1172)
OKLCHoklch(62.61% 0.127 112.2)
XYZxyz(20.5931, 25.1642, 5.2854)
Luminance0.2516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8F22 #27228F
analogous
#8F5D22 #8A8F22 #548F22
triadic
#8A8F22 #228A8F #8F228A
tetradic
#8A8F22 #228F5D #27228F #8F2254
square
#8A8F22 #228F5D #27228F #8F2254
split-complementary
#8A8F22 #22548F #5D228F
monochromatic
#2B2C0A #5A5E16 #8A8F22 #BAC02E #D1D755

Accessibility & contrast

On white

3.48
#8A8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#8A8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8F22
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8F22#FFFFFF#000000##000000
##8A8F221.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8809
Deuteranopia (green-blind)
#9B8B2B
Tritanopia (blue-blind)
#94867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a8f22;
/* rgb */ color: rgb(138, 143, 34);
/* oklch */ color: oklch(62.6% 0.127 112.2);
Tailwind
colors: {
  custom: {
    50: '#afaf66',
    500: '#8a8f22',
    950: '#000000',
  },
}
SCSS
$custom: #8a8f22;
$custom-light: #afaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8f22",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 62.752,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62607,
    "c": 0.12658,
    "h": 112.2
  },
  "luminance": 0.25164
}

Semantic roles & 50–950 ramp

primary
#8A8F22
secondary
#5752BA
accent
#43E54B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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