#8A9228#8A9228

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

Color values

HEX#8A9228
RGBrgb(138, 146, 40)
HSLhsl(65, 57%, 36%)
HSVhsv(65, 73%, 57%)
CMYKcmyk(5.5%, 0%, 72.6%, 42.7%)
CIE-LABlab(58.15, -16.63, 52.01)
CIE-LCHlch(58.15, 54.61, 107.74°)
OKLaboklab(63.35% -0.0508 0.1156)
OKLCHoklch(63.35% 0.126 113.7)
XYZxyz(21.1437, 26.1147, 5.9339)
Luminance0.2611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9228 #302892
analogous
#926528 #8A9228 #559228
triadic
#8A9228 #288A92 #92288A
tetradic
#8A9228 #289265 #302892 #922855
square
#8A9228 #289265 #302892 #922855
split-complementary
#8A9228 #285592 #652892
monochromatic
#2F320E #5D621B #8A9228 #B7C235 #CBD461

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9228#FFFFFF#000000##000000
##8A92281.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)
#9D8B15
Deuteranopia (green-blind)
#9D8D30
Tritanopia (blue-blind)
#93897D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a9228;
/* rgb */ color: rgb(138, 146, 40);
/* oklch */ color: oklch(63.3% 0.126 113.7);
Tailwind
colors: {
  custom: {
    50: '#afb16a',
    500: '#8a9228',
    950: '#000000',
  },
}
SCSS
$custom: #8a9228;
$custom-light: #afb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9228",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 64.528,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63348,
    "c": 0.12624,
    "h": 113.7
  },
  "luminance": 0.26114
}

Semantic roles & 50–950 ramp

primary
#8A9228
secondary
#645DB9
accent
#48E053
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A9228

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

Preview Lab → · Contrast checker → · Palette generator →

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