#7E8320#7E8320

#7E8320 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.118 H 112.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7E8320
RGBrgb(126, 131, 32)
HSLhsl(63, 61%, 32%)
HSVhsv(63, 76%, 51%)
CMYKcmyk(3.8%, 0%, 75.6%, 48.6%)
CIE-LABlab(52.70, -14.51, 49.40)
CIE-LCHlch(52.70, 51.48, 106.37°)
OKLaboklab(58.73% -0.045 0.109)
OKLCHoklch(58.73% 0.118 112.4)
XYZxyz(16.9817, 20.7729, 4.4812)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8320 #252083
analogous
#835720 #7E8320 #4D8320
triadic
#7E8320 #207E83 #83207E
tetradic
#7E8320 #208357 #252083 #83204D
square
#7E8320 #208357 #252083 #83204D
split-complementary
#7E8320 #204D83 #572083
monochromatic
#1F2108 #4F5214 #7E8320 #ADB42C #CCD34A

Accessibility & contrast

On white

4.07
#7E8320 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7E8320 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8320
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8320#FFFFFF#000000##000000
##7E83201.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0B
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#877B70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e8320;
/* rgb */ color: rgb(126, 131, 32);
/* oklch */ color: oklch(58.7% 0.118 112.4);
Tailwind
colors: {
  custom: {
    50: '#a6a664',
    500: '#7e8320',
    950: '#000000',
  },
}
SCSS
$custom: #7e8320;
$custom-light: #a6a664;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8320",
  "rgb": {
    "r": 126,
    "g": 131,
    "b": 32
  },
  "hsl": {
    "h": 63.03,
    "s": 60.736,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58726,
    "c": 0.11789,
    "h": 112.4
  },
  "luminance": 0.20773
}

Semantic roles & 50–950 ramp

primary
#7E8320
secondary
#4F49B6
accent
#44E44C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8320

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

Preview Lab → · Contrast checker → · Palette generator →

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