#8A8238#8A8238

#8A8238 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.8% C 0.096 H 103.2°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A8238
RGBrgb(138, 130, 56)
HSLhsl(54, 42%, 38%)
HSVhsv(54, 59%, 54%)
CMYKcmyk(0%, 5.8%, 59.4%, 45.9%)
CIE-LABlab(53.66, -6.99, 40.33)
CIE-LCHlch(53.66, 40.93, 99.83°)
OKLaboklab(59.81% -0.0218 0.0934)
OKLCHoklch(59.81% 0.096 103.2)
XYZxyz(19.1783, 21.6547, 6.9102)
Luminance0.2165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8238 #38408A
analogous
#8A5938 #8A8238 #698A38
triadic
#8A8238 #388A82 #82388A
tetradic
#8A8238 #388A59 #38408A #8A3869
square
#8A8238 #388A59 #38408A #8A3869
split-complementary
#8A8238 #38698A #59388A
monochromatic
#333015 #5E5926 #8A8238 #B5AB4A #C7BF75

Accessibility & contrast

On white

3.94
#8A8238 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#8A8238 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8238
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8238#FFFFFF#000000##000000
##8A82381.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E30
Deuteranopia (green-blind)
#8F823C
Tritanopia (blue-blind)
#947A72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8238;
/* rgb */ color: rgb(138, 130, 56);
/* oklch */ color: oklch(59.8% 0.096 103.2);
Tailwind
colors: {
  custom: {
    50: '#aea671',
    500: '#8a8238',
    950: '#000000',
  },
}
SCSS
$custom: #8a8238;
$custom-light: #aea671;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8238",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 56
  },
  "hsl": {
    "h": 54.146,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.5981,
    "c": 0.09587,
    "h": 103.2
  },
  "luminance": 0.21654
}

Semantic roles & 50–950 ramp

primary
#8A8238
secondary
#6E74B0
accent
#62D256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#110F08
muted
#807F7B

Preview Lab

Preview with #8A8238

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

Preview Lab → · Contrast checker → · Palette generator →

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