#7E6F22#7E6F22

#7E6F22 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.1% C 0.097 H 97.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7E6F22
RGBrgb(126, 111, 34)
HSLhsl(50, 58%, 31%)
HSVhsv(50, 73%, 49%)
CMYKcmyk(0%, 11.9%, 73%, 50.6%)
CIE-LABlab(46.87, -3.35, 42.93)
CIE-LCHlch(46.87, 43.06, 94.46°)
OKLaboklab(54.09% -0.0134 0.0957)
OKLCHoklch(54.09% 0.097 97.9)
XYZxyz(14.5781, 15.9207, 3.8182)
Luminance0.1592 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6F22 #22317E
analogous
#7E4122 #7E6F22 #5F7E22
triadic
#7E6F22 #227E6F #6F227E
tetradic
#7E6F22 #227E41 #22317E #7E225F
square
#7E6F22 #227E41 #22317E #7E225F
split-complementary
#7E6F22 #225F7E #41227E
monochromatic
#1E1A08 #4E4515 #7E6F22 #AE992F #CFB94C

Accessibility & contrast

On white

5.02
#7E6F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7E6F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6F22
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6F22#FFFFFF#000000##FFFFFF
##7E6F221.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C17
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#886660
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e6f22;
/* rgb */ color: rgb(126, 111, 34);
/* oklch */ color: oklch(54.1% 0.097 97.9);
Tailwind
colors: {
  custom: {
    50: '#a69862',
    500: '#7e6f22',
    950: '#000000',
  },
}
SCSS
$custom: #7e6f22;
$custom-light: #a69862;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6f22",
  "rgb": {
    "r": 126,
    "g": 111,
    "b": 34
  },
  "hsl": {
    "h": 50.217,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54087,
    "c": 0.09662,
    "h": 97.9
  },
  "luminance": 0.1592
}

Semantic roles & 50–950 ramp

primary
#7E6F22
secondary
#4B5CB1
accent
#60E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D05
muted
#7F7E7A

Preview Lab

Preview with #7E6F22

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

Preview Lab → · Contrast checker → · Palette generator →

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