#7E6916#7E6916

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

Color values

HEX#7E6916
RGBrgb(126, 105, 22)
HSLhsl(48, 70%, 29%)
HSVhsv(48, 83%, 49%)
CMYKcmyk(0%, 16.7%, 82.5%, 50.6%)
CIE-LABlab(45.08, -0.46, 45.93)
CIE-LCHlch(45.08, 45.93, 90.58°)
OKLaboklab(52.64% -0.0065 0.0995)
OKLCHoklch(52.64% 0.1 93.7)
XYZxyz(13.8014, 14.5975, 2.8496)
Luminance0.1460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6916 #162B7E
analogous
#7E3516 #7E6916 #5F7E16
triadic
#7E6916 #167E69 #69167E
tetradic
#7E6916 #167E35 #162B7E #7E165F
square
#7E6916 #167E35 #162B7E #7E165F
split-complementary
#7E6916 #165F7E #35167E
monochromatic
#1A1605 #4A3E0D #7E6916 #B2941F #DBB933

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E6916#FFFFFF#000000##FFFFFF
##7E69161.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)
#756703
Deuteranopia (green-blind)
#7B6D1C
Tritanopia (blue-blind)
#89605A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6916;
/* rgb */ color: rgb(126, 105, 22);
/* oklch */ color: oklch(52.6% 0.100 93.7);
Tailwind
colors: {
  custom: {
    50: '#a7935b',
    500: '#7e6916',
    950: '#000000',
  },
}
SCSS
$custom: #7e6916;
$custom-light: #a7935b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6916",
  "rgb": {
    "r": 126,
    "g": 105,
    "b": 22
  },
  "hsl": {
    "h": 47.885,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52644,
    "c": 0.09973,
    "h": 93.7
  },
  "luminance": 0.14597
}

Semantic roles & 50–950 ramp

primary
#7E6916
secondary
#3D55B3
accent
#5FED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6916

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

Preview Lab → · Contrast checker → · Palette generator →

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