#8A9238#8A9238

#8A9238 is a light, moderate yellow. Relative luminance 0.262; OKLCH L 63.5% C 0.114 H 113.9°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A9238
RGBrgb(138, 146, 56)
HSLhsl(65, 45%, 40%)
HSVhsv(65, 62%, 57%)
CMYKcmyk(5.5%, 0%, 61.6%, 42.7%)
CIE-LABlab(58.27, -15.60, 45.43)
CIE-LCHlch(58.27, 48.04, 108.95°)
OKLaboklab(63.49% -0.0463 0.1042)
OKLCHoklch(63.49% 0.114 113.9)
XYZxyz(21.4744, 26.2469, 7.6755)
Luminance0.2625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9238 #403892
analogous
#926D38 #8A9238 #5D9238
triadic
#8A9238 #388A92 #92388A
tetradic
#8A9238 #38926D #403892 #92385D
square
#8A9238 #38926D #403892 #92385D
split-complementary
#8A9238 #385D92 #6D3892
monochromatic
#363A16 #606627 #8A9238 #B1BB4D #C4CC79

Accessibility & contrast

On white

3.36
#8A9238 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#8A9238 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9238
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9238#FFFFFF#000000##000000
##8A92381.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8B2E
Deuteranopia (green-blind)
#9C8D3E
Tritanopia (blue-blind)
#938A7F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a9238;
/* rgb */ color: rgb(138, 146, 56);
/* oklch */ color: oklch(63.5% 0.114 113.9);
Tailwind
colors: {
  custom: {
    50: '#aeb173',
    500: '#8a9238',
    950: '#000000',
  },
}
SCSS
$custom: #8a9238;
$custom-light: #aeb173;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9238",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 56
  },
  "hsl": {
    "h": 65.333,
    "s": 44.554,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63488,
    "c": 0.11403,
    "h": 113.9
  },
  "luminance": 0.26247
}

Semantic roles & 50–950 ramp

primary
#8A9238
secondary
#7771B5
accent
#54D45F
background
#FBFAF7
surface
#F6F5ED
border
#D0CFC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8A9238

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

Preview Lab → · Contrast checker → · Palette generator →

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