#8A9231#8A9231

#8A9231 is a light, moderate yellow. Relative luminance 0.262; OKLCH L 63.4% C 0.120 H 113.8°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A9231
RGBrgb(138, 146, 49)
HSLhsl(65, 50%, 38%)
HSVhsv(65, 66%, 57%)
CMYKcmyk(5.5%, 0%, 66.4%, 42.7%)
CIE-LABlab(58.21, -16.10, 48.46)
CIE-LCHlch(58.21, 51.06, 108.38°)
OKLaboklab(63.42% -0.0484 0.1096)
OKLCHoklch(63.42% 0.12 113.8)
XYZxyz(21.3150, 26.1832, 6.8362)
Luminance0.2618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9231 #393192
analogous
#926931 #8A9231 #599231
triadic
#8A9231 #318A92 #92318A
tetradic
#8A9231 #319269 #393192 #923159
square
#8A9231 #319269 #393192 #923159
split-complementary
#8A9231 #315992 #693192
monochromatic
#333612 #5F6422 #8A9231 #B5BF41 #C7CF6F

Accessibility & contrast

On white

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

On black

6.24
#8A9231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9231
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9231#FFFFFF#000000##000000
##8A92311.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B24
Deuteranopia (green-blind)
#9C8D38
Tritanopia (blue-blind)
#938A7E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a9231;
/* rgb */ color: rgb(138, 146, 49);
/* oklch */ color: oklch(63.4% 0.120 113.8);
Tailwind
colors: {
  custom: {
    50: '#afb16e',
    500: '#8a9231',
    950: '#000000',
  },
}
SCSS
$custom: #8a9231;
$custom-light: #afb16e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9231",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 49
  },
  "hsl": {
    "h": 64.948,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.6342,
    "c": 0.11981,
    "h": 113.8
  },
  "luminance": 0.26183
}

Semantic roles & 50–950 ramp

primary
#8A9231
secondary
#6F69B6
accent
#4FD95A
background
#FBFAF6
surface
#F6F5EC
border
#D0CFC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A9231

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

Preview Lab → · Contrast checker → · Palette generator →

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