#8A8231#8A8231

#8A8231 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.7% C 0.102 H 103.7°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8A8231
RGBrgb(138, 130, 49)
HSLhsl(55, 48%, 37%)
HSVhsv(55, 64%, 54%)
CMYKcmyk(0%, 5.8%, 64.5%, 45.9%)
CIE-LABlab(53.59, -7.51, 43.58)
CIE-LCHlch(53.59, 44.22, 99.78°)
OKLaboklab(59.73% -0.0242 0.0993)
OKLCHoklch(59.73% 0.102 103.7)
XYZxyz(19.0189, 21.5910, 6.0708)
Luminance0.2159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8231 #31398A
analogous
#8A5631 #8A8231 #668A31
triadic
#8A8231 #318A82 #82318A
tetradic
#8A8231 #318A56 #31398A #8A3166
square
#8A8231 #318A56 #31398A #8A3166
split-complementary
#8A8231 #31668A #56318A
monochromatic
#302D11 #5D5721 #8A8231 #B7AD41 #CAC26B

Accessibility & contrast

On white

3.95
#8A8231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8A8231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8231
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8231#FFFFFF#000000##000000
##8A82311.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E27
Deuteranopia (green-blind)
#908236
Tritanopia (blue-blind)
#947971
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8231;
/* rgb */ color: rgb(138, 130, 49);
/* oklch */ color: oklch(59.7% 0.102 103.7);
Tailwind
colors: {
  custom: {
    50: '#afa66d',
    500: '#8a8231',
    950: '#000000',
  },
}
SCSS
$custom: #8a8231;
$custom-light: #afa66d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8231",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 54.607,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.59734,
    "c": 0.10217,
    "h": 103.7
  },
  "luminance": 0.2159
}

Semantic roles & 50–950 ramp

primary
#8A8231
secondary
#656CB2
accent
#5DD751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8231

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

Preview Lab → · Contrast checker → · Palette generator →

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