#7E6917#7E6917

#7E6917 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.099 H 93.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7E6917
RGBrgb(126, 105, 23)
HSLhsl(48, 69%, 29%)
HSVhsv(48, 82%, 49%)
CMYKcmyk(0%, 16.7%, 81.7%, 50.6%)
CIE-LABlab(45.08, -0.42, 45.58)
CIE-LCHlch(45.08, 45.58, 90.53°)
OKLaboklab(52.65% -0.0063 0.099)
OKLCHoklch(52.65% 0.099 93.6)
XYZxyz(13.8112, 14.6015, 2.9014)
Luminance0.1460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6917 #172C7E
analogous
#7E3617 #7E6917 #607E17
triadic
#7E6917 #177E69 #69177E
tetradic
#7E6917 #177E36 #172C7E #7E1760
square
#7E6917 #177E36 #172C7E #7E1760
split-complementary
#7E6917 #17607E #36177E
monochromatic
#1A1605 #4A3E0E #7E6917 #B29420 #DAB935

Accessibility & contrast

On white

5.36
#7E6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7E6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6917
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6917#FFFFFF#000000##FFFFFF
##7E69171.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#7A6D1C
Tritanopia (blue-blind)
#89605A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6917;
/* rgb */ color: rgb(126, 105, 23);
/* oklch */ color: oklch(52.6% 0.099 93.6);
Tailwind
colors: {
  custom: {
    50: '#a7935c',
    500: '#7e6917',
    950: '#000000',
  },
}
SCSS
$custom: #7e6917;
$custom-light: #a7935c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6917",
  "rgb": {
    "r": 126,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 47.767,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5265,
    "c": 0.0992,
    "h": 93.6
  },
  "luminance": 0.14601
}

Semantic roles & 50–950 ramp

primary
#7E6917
secondary
#3E56B3
accent
#60EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6917

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

Preview Lab → · Contrast checker → · Palette generator →

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