#8A9227#8A9227

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

Color values

HEX#8A9227
RGBrgb(138, 146, 39)
HSLhsl(64, 58%, 36%)
HSVhsv(64, 73%, 57%)
CMYKcmyk(5.5%, 0%, 73.3%, 42.7%)
CIE-LABlab(58.14, -16.69, 52.38)
CIE-LCHlch(58.14, 54.97, 107.67°)
OKLaboklab(63.34% -0.0511 0.1161)
OKLCHoklch(63.34% 0.127 113.7)
XYZxyz(21.1269, 26.1080, 5.8455)
Luminance0.2611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9227 #2F2792
analogous
#926527 #8A9227 #559227
triadic
#8A9227 #278A92 #92278A
tetradic
#8A9227 #279265 #2F2792 #922755
square
#8A9227 #279265 #2F2792 #922755
split-complementary
#8A9227 #275592 #652792
monochromatic
#2F310D #5C621A #8A9227 #B8C234 #CCD45F

Accessibility & contrast

On white

3.38
#8A9227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9227#FFFFFF#000000##000000
##8A92271.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B13
Deuteranopia (green-blind)
#9D8D30
Tritanopia (blue-blind)
#93897D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a9227;
/* rgb */ color: rgb(138, 146, 39);
/* oklch */ color: oklch(63.3% 0.127 113.7);
Tailwind
colors: {
  custom: {
    50: '#afb169',
    500: '#8a9227',
    950: '#000000',
  },
}
SCSS
$custom: #8a9227;
$custom-light: #afb169;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9227",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 39
  },
  "hsl": {
    "h": 64.486,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63341,
    "c": 0.12687,
    "h": 113.7
  },
  "luminance": 0.26108
}

Semantic roles & 50–950 ramp

primary
#8A9227
secondary
#625BBA
accent
#47E152
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A9227

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

Preview Lab → · Contrast checker → · Palette generator →

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