#7E6E22#7E6E22

#7E6E22 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.9% C 0.096 H 97.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7E6E22
RGBrgb(126, 110, 34)
HSLhsl(50, 58%, 31%)
HSVhsv(50, 73%, 49%)
CMYKcmyk(0%, 12.7%, 73%, 50.6%)
CIE-LABlab(46.58, -2.78, 42.65)
CIE-LCHlch(46.58, 42.74, 93.73°)
OKLaboklab(53.86% -0.0117 0.0951)
OKLCHoklch(53.86% 0.096 97)
XYZxyz(14.4696, 15.7037, 3.7820)
Luminance0.1570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6E22 #22327E
analogous
#7E4022 #7E6E22 #607E22
triadic
#7E6E22 #227E6E #6E227E
tetradic
#7E6E22 #227E40 #22327E #7E2260
square
#7E6E22 #227E40 #22327E #7E2260
split-complementary
#7E6E22 #22607E #40227E
monochromatic
#1E1A08 #4E4415 #7E6E22 #AE982F #CFB84C

Accessibility & contrast

On white

5.07
#7E6E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7E6E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6E22
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6E22#FFFFFF#000000##FFFFFF
##7E6E221.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B17
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#88655F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e6e22;
/* rgb */ color: rgb(126, 110, 34);
/* oklch */ color: oklch(53.9% 0.096 97.0);
Tailwind
colors: {
  custom: {
    50: '#a69762',
    500: '#7e6e22',
    950: '#000000',
  },
}
SCSS
$custom: #7e6e22;
$custom-light: #a69762;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6e22",
  "rgb": {
    "r": 126,
    "g": 110,
    "b": 34
  },
  "hsl": {
    "h": 49.565,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53859,
    "c": 0.09581,
    "h": 97
  },
  "luminance": 0.15703
}

Semantic roles & 50–950 ramp

primary
#7E6E22
secondary
#4B5DB1
accent
#62E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D05
muted
#7F7E7A

Preview Lab

Preview with #7E6E22

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

Preview Lab → · Contrast checker → · Palette generator →

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