#7E7920#7E7920

#7E7920 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.4% C 0.107 H 106.1°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7E7920
RGBrgb(126, 121, 32)
HSLhsl(57, 59%, 31%)
HSVhsv(57, 75%, 49%)
CMYKcmyk(0%, 4%, 74.6%, 50.6%)
CIE-LABlab(49.76, -9.07, 46.58)
CIE-LCHlch(49.76, 47.46, 101.02°)
OKLaboklab(56.38% -0.0298 0.103)
OKLCHoklch(56.38% 0.107 106.1)
XYZxyz(15.7029, 18.2152, 4.0550)
Luminance0.1822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7920 #20257E
analogous
#7E4A20 #7E7920 #547E20
triadic
#7E7920 #207E79 #79207E
tetradic
#7E7920 #207E4A #20257E #7E2054
square
#7E7920 #207E4A #20257E #7E2054
split-complementary
#7E7920 #20547E #4A207E
monochromatic
#1C1B07 #4D4A14 #7E7920 #AFA82C #D0C948

Accessibility & contrast

On white

4.52
#7E7920 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#7E7920 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7920
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7920#FFFFFF#000000##000000
##7E79201.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#847410
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e7920;
/* rgb */ color: rgb(126, 121, 32);
/* oklch */ color: oklch(56.4% 0.107 106.1);
Tailwind
colors: {
  custom: {
    50: '#a69f62',
    500: '#7e7920',
    950: '#000000',
  },
}
SCSS
$custom: #7e7920;
$custom-light: #a69f62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7920",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 32
  },
  "hsl": {
    "h": 56.809,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56375,
    "c": 0.10724,
    "h": 106.1
  },
  "luminance": 0.18215
}

Semantic roles & 50–950 ramp

primary
#7E7920
secondary
#494EB1
accent
#4EE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E7920

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

Preview Lab → · Contrast checker → · Palette generator →

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