#7E8522#7E8522

#7E8522 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.2% C 0.119 H 113.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7E8522
RGBrgb(126, 133, 34)
HSLhsl(64, 59%, 33%)
HSVhsv(64, 74%, 52%)
CMYKcmyk(5.3%, 0%, 74.4%, 47.8%)
CIE-LABlab(53.30, -15.47, 49.24)
CIE-LCHlch(53.30, 51.61, 107.44°)
OKLaboklab(59.22% -0.0475 0.109)
OKLCHoklch(59.22% 0.119 113.5)
XYZxyz(17.2810, 21.3265, 4.7192)
Luminance0.2133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8522 #292285
analogous
#855A22 #7E8522 #4D8522
triadic
#7E8522 #227E85 #85227E
tetradic
#7E8522 #22855A #292285 #85224D
square
#7E8522 #22855A #292285 #85224D
split-complementary
#7E8522 #224D85 #5A2285
monochromatic
#222409 #505416 #7E8522 #ACB62E #C9D24F

Accessibility & contrast

On white

3.99
#7E8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7E8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8522
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8522#FFFFFF#000000##000000
##7E85221.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0F
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#877D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8522;
/* rgb */ color: rgb(126, 133, 34);
/* oklch */ color: oklch(59.2% 0.119 113.5);
Tailwind
colors: {
  custom: {
    50: '#a6a865',
    500: '#7e8522',
    950: '#000000',
  },
}
SCSS
$custom: #7e8522;
$custom-light: #a6a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8522",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 64.242,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59215,
    "c": 0.1189,
    "h": 113.5
  },
  "luminance": 0.21326
}

Semantic roles & 50–950 ramp

primary
#7E8522
secondary
#554DB6
accent
#45E250
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8522

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

Preview Lab → · Contrast checker → · Palette generator →

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