#8E8522#8E8522

#8E8522 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.7% C 0.116 H 104.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8E8522
RGBrgb(142, 133, 34)
HSLhsl(55, 61%, 35%)
HSVhsv(55, 76%, 56%)
CMYKcmyk(0%, 6.3%, 76.1%, 44.3%)
CIE-LABlab(54.70, -8.19, 51.06)
CIE-LCHlch(54.70, 51.71, 99.11°)
OKLaboklab(60.67% -0.028 0.1123)
OKLCHoklch(60.67% 0.116 104)
XYZxyz(19.8325, 22.6421, 4.8388)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8522 #222B8E
analogous
#8E4F22 #8E8522 #618E22
triadic
#8E8522 #228E85 #85228E
tetradic
#8E8522 #228E4F #222B8E #8E2261
square
#8E8522 #228E4F #222B8E #8E2261
split-complementary
#8E8522 #22618E #4F228E
monochromatic
#2B290A #5D5716 #8E8522 #BFB32E #D6CB54

Accessibility & contrast

On white

3.80
#8E8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#8E8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8522
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8522#FFFFFF#000000##000000
##8E85221.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800E
Deuteranopia (green-blind)
#948529
Tritanopia (blue-blind)
#997B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8e8522;
/* rgb */ color: rgb(142, 133, 34);
/* oklch */ color: oklch(60.7% 0.116 104.0);
Tailwind
colors: {
  custom: {
    50: '#b2a865',
    500: '#8e8522',
    950: '#000000',
  },
}
SCSS
$custom: #8e8522;
$custom-light: #b2a865;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8522",
  "rgb": {
    "r": 142,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 55,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.6067,
    "c": 0.1157,
    "h": 104
  },
  "luminance": 0.22641
}

Semantic roles & 50–950 ramp

primary
#8E8522
secondary
#525BBA
accent
#51E443
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8522

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

Preview Lab → · Contrast checker → · Palette generator →

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