#7E6820#7E6820

#7E6820 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.5% C 0.093 H 91.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E6820
RGBrgb(126, 104, 32)
HSLhsl(46, 59%, 31%)
HSVhsv(46, 75%, 49%)
CMYKcmyk(0%, 17.5%, 74.6%, 50.6%)
CIE-LABlab(44.86, 0.57, 41.79)
CIE-LCHlch(44.86, 41.79, 89.22°)
OKLaboklab(52.49% -0.0024 0.0929)
OKLCHoklch(52.49% 0.093 91.5)
XYZxyz(13.8160, 14.4414, 3.4260)
Luminance0.1444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6820 #20367E
analogous
#7E3920 #7E6820 #657E20
triadic
#7E6820 #207E68 #68207E
tetradic
#7E6820 #207E39 #20367E #7E2065
square
#7E6820 #207E39 #20367E #7E2065
split-complementary
#7E6820 #20657E #39207E
monochromatic
#1C1707 #4D4014 #7E6820 #AF902C #D0B148

Accessibility & contrast

On white

5.40
#7E6820 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7E6820 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6820
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6820#FFFFFF#000000##FFFFFF
##7E68201.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746615
Deuteranopia (green-blind)
#796D24
Tritanopia (blue-blind)
#895F5A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e6820;
/* rgb */ color: rgb(126, 104, 32);
/* oklch */ color: oklch(52.5% 0.093 91.5);
Tailwind
colors: {
  custom: {
    50: '#a79260',
    500: '#7e6820',
    950: '#000000',
  },
}
SCSS
$custom: #7e6820;
$custom-light: #a79260;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6820",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 32
  },
  "hsl": {
    "h": 45.957,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52492,
    "c": 0.0929,
    "h": 91.5
  },
  "luminance": 0.14441
}

Semantic roles & 50–950 ramp

primary
#7E6820
secondary
#4961B1
accent
#6AE345
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7E6820

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

Preview Lab → · Contrast checker → · Palette generator →

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