#8A8526#8A8526

#8A8526 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.114 H 106.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A8526
RGBrgb(138, 133, 38)
HSLhsl(57, 57%, 35%)
HSVhsv(57, 72%, 54%)
CMYKcmyk(0%, 3.6%, 72.5%, 45.9%)
CIE-LABlab(54.36, -9.82, 49.09)
CIE-LCHlch(54.36, 50.06, 101.31°)
OKLaboklab(60.32% -0.0319 0.109)
OKLCHoklch(60.32% 0.114 106.3)
XYZxyz(19.2194, 22.3190, 5.1289)
Luminance0.2232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8526 #262B8A
analogous
#8A5326 #8A8526 #5D8A26
triadic
#8A8526 #268A85 #85268A
tetradic
#8A8526 #268A53 #262B8A #8A265D
square
#8A8526 #268A53 #262B8A #8A265D
split-complementary
#8A8526 #265D8A #53268A
monochromatic
#2A290C #5A5719 #8A8526 #BAB333 #D1CB59

Accessibility & contrast

On white

3.84
#8A8526 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8A8526 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8526
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8526#FFFFFF#000000##000000
##8A85261.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918016
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#947C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8526;
/* rgb */ color: rgb(138, 133, 38);
/* oklch */ color: oklch(60.3% 0.114 106.3);
Tailwind
colors: {
  custom: {
    50: '#afa867',
    500: '#8a8526',
    950: '#000000',
  },
}
SCSS
$custom: #8a8526;
$custom-light: #afa867;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8526",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 38
  },
  "hsl": {
    "h": 57,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60321,
    "c": 0.1136,
    "h": 106.3
  },
  "luminance": 0.22318
}

Semantic roles & 50–950 ramp

primary
#8A8526
secondary
#565BB6
accent
#4FE048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8526

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

Preview Lab → · Contrast checker → · Palette generator →

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