#7E6515#7E6515

#7E6515 is a mid, moderate yellow. Relative luminance 0.138; OKLCH L 51.7% C 0.098 H 90.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7E6515
RGBrgb(126, 101, 21)
HSLhsl(46, 71%, 29%)
HSVhsv(46, 83%, 49%)
CMYKcmyk(0%, 19.8%, 83.3%, 50.6%)
CIE-LABlab(43.94, 1.82, 45.26)
CIE-LCHlch(43.94, 45.30, 87.69°)
OKLaboklab(51.75% -0.0001 0.0979)
OKLCHoklch(51.75% 0.098 90.1)
XYZxyz(13.3940, 13.7980, 2.6671)
Luminance0.1380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6515 #152E7E
analogous
#7E3115 #7E6515 #637E15
triadic
#7E6515 #157E65 #65157E
tetradic
#7E6515 #157E31 #152E7E #7E1563
square
#7E6515 #157E31 #152E7E #7E1563
split-complementary
#7E6515 #15637E #31157E
monochromatic
#1A1504 #4A3B0C #7E6515 #B28F1E #DDB431

Accessibility & contrast

On white

5.59
#7E6515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7E6515 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6515
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6515#FFFFFF#000000##FFFFFF
##7E65151.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726403
Deuteranopia (green-blind)
#786B1A
Tritanopia (blue-blind)
#895C56
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e6515;
/* rgb */ color: rgb(126, 101, 21);
/* oklch */ color: oklch(51.7% 0.098 90.1);
Tailwind
colors: {
  custom: {
    50: '#a7905a',
    500: '#7e6515',
    950: '#000000',
  },
}
SCSS
$custom: #7e6515;
$custom-light: #a7905a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6515",
  "rgb": {
    "r": 126,
    "g": 101,
    "b": 21
  },
  "hsl": {
    "h": 45.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51745,
    "c": 0.09786,
    "h": 90.1
  },
  "luminance": 0.13797
}

Semantic roles & 50–950 ramp

primary
#7E6515
secondary
#3C58B3
accent
#65EE3A
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7E6515

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

Preview Lab → · Contrast checker → · Palette generator →

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