#7E6922#7E6922

#7E6922 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.7% C 0.092 H 92.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7E6922
RGBrgb(126, 105, 34)
HSLhsl(46, 58%, 31%)
HSVhsv(46, 73%, 49%)
CMYKcmyk(0%, 16.7%, 73%, 50.6%)
CIE-LABlab(45.16, 0.10, 41.21)
CIE-LCHlch(45.16, 41.21, 89.86°)
OKLaboklab(52.73% -0.0035 0.0921)
OKLCHoklch(52.73% 0.092 92.2)
XYZxyz(13.9452, 14.6551, 3.6073)
Luminance0.1465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6922 #22377E
analogous
#7E3B22 #7E6922 #657E22
triadic
#7E6922 #227E69 #69227E
tetradic
#7E6922 #227E3B #22377E #7E2265
square
#7E6922 #227E3B #22377E #7E2265
split-complementary
#7E6922 #22657E #3B227E
monochromatic
#1E1908 #4E4115 #7E6922 #AE912F #CFB14C

Accessibility & contrast

On white

5.34
#7E6922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7E6922 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6922
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6922#FFFFFF#000000##FFFFFF
##7E69221.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756718
Deuteranopia (green-blind)
#7A6D26
Tritanopia (blue-blind)
#89605B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6922;
/* rgb */ color: rgb(126, 105, 34);
/* oklch */ color: oklch(52.7% 0.092 92.2);
Tailwind
colors: {
  custom: {
    50: '#a79362',
    500: '#7e6922',
    950: '#000000',
  },
}
SCSS
$custom: #7e6922;
$custom-light: #a79362;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6922",
  "rgb": {
    "r": 126,
    "g": 105,
    "b": 34
  },
  "hsl": {
    "h": 46.304,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52732,
    "c": 0.09212,
    "h": 92.2
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#7E6922
secondary
#4B62B1
accent
#6AE147
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E6922

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

Preview Lab → · Contrast checker → · Palette generator →

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