#8A9126#8A9126

#8A9126 is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.1% C 0.126 H 113.2°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A9126
RGBrgb(138, 145, 38)
HSLhsl(64, 58%, 36%)
HSVhsv(64, 74%, 57%)
CMYKcmyk(4.8%, 0%, 73.8%, 43.1%)
CIE-LABlab(57.84, -16.22, 52.46)
CIE-LCHlch(57.84, 54.91, 107.18°)
OKLaboklab(63.1% -0.0499 0.1161)
OKLCHoklch(63.1% 0.126 113.2)
XYZxyz(20.9571, 25.7945, 5.7082)
Luminance0.2579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9126 #2D2691
analogous
#916226 #8A9126 #549126
triadic
#8A9126 #268A91 #91268A
tetradic
#8A9126 #269162 #2D2691 #912654
square
#8A9126 #269162 #2D2691 #912654
split-complementary
#8A9126 #265491 #622691
monochromatic
#2E300D #5C6119 #8A9126 #B8C133 #CDD55D

Accessibility & contrast

On white

3.41
#8A9126 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#8A9126 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9126
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9126#FFFFFF#000000##000000
##8A91261.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A11
Deuteranopia (green-blind)
#9C8C2F
Tritanopia (blue-blind)
#93887C
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a9126;
/* rgb */ color: rgb(138, 145, 38);
/* oklch */ color: oklch(63.1% 0.126 113.2);
Tailwind
colors: {
  custom: {
    50: '#afb168',
    500: '#8a9126',
    950: '#000000',
  },
}
SCSS
$custom: #8a9126;
$custom-light: #afb168;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9126",
  "rgb": {
    "r": 138,
    "g": 145,
    "b": 38
  },
  "hsl": {
    "h": 63.925,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.631,
    "c": 0.12638,
    "h": 113.2
  },
  "luminance": 0.25794
}

Semantic roles & 50–950 ramp

primary
#8A9126
secondary
#6059BA
accent
#46E250
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A9126

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

Preview Lab → · Contrast checker → · Palette generator →

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