#8A8126#8A8126

#8A8126 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.110 H 103.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A8126
RGBrgb(138, 129, 38)
HSLhsl(55, 57%, 35%)
HSVhsv(55, 72%, 54%)
CMYKcmyk(0%, 6.5%, 72.5%, 45.9%)
CIE-LABlab(53.22, -7.63, 47.96)
CIE-LCHlch(53.22, 48.56, 99.04°)
OKLaboklab(59.41% -0.0258 0.1066)
OKLCHoklch(59.41% 0.11 103.6)
XYZxyz(18.6821, 21.2445, 4.9499)
Luminance0.2124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8126 #262F8A
analogous
#8A4F26 #8A8126 #618A26
triadic
#8A8126 #268A81 #81268A
tetradic
#8A8126 #268A4F #262F8A #8A2661
square
#8A8126 #268A4F #262F8A #8A2661
split-complementary
#8A8126 #26618A #4F268A
monochromatic
#2A270C #5A5419 #8A8126 #BAAE33 #D1C659

Accessibility & contrast

On white

4.00
#8A8126 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8A8126 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8126
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8126#FFFFFF#000000##000000
##8A81261.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D17
Deuteranopia (green-blind)
#90812C
Tritanopia (blue-blind)
#95786F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a8126;
/* rgb */ color: rgb(138, 129, 38);
/* oklch */ color: oklch(59.4% 0.110 103.6);
Tailwind
colors: {
  custom: {
    50: '#afa567',
    500: '#8a8126',
    950: '#000000',
  },
}
SCSS
$custom: #8a8126;
$custom-light: #afa567;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8126",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 54.6,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59408,
    "c": 0.1097,
    "h": 103.6
  },
  "luminance": 0.21244
}

Semantic roles & 50–950 ramp

primary
#8A8126
secondary
#565EB6
accent
#55E048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8126

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

Preview Lab → · Contrast checker → · Palette generator →

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