#7E7315#7E7315

#7E7315 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.9% C 0.108 H 102.2°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E7315
RGBrgb(126, 115, 21)
HSLhsl(54, 71%, 29%)
HSVhsv(54, 83%, 49%)
CMYKcmyk(0%, 8.7%, 83.3%, 50.6%)
CIE-LABlab(47.95, -6.20, 48.79)
CIE-LCHlch(47.95, 49.19, 97.25°)
OKLaboklab(54.92% -0.0228 0.1055)
OKLCHoklch(54.92% 0.108 102.2)
XYZxyz(14.8710, 16.7519, 3.1595)
Luminance0.1675 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7315 #15207E
analogous
#7E3F15 #7E7315 #557E15
triadic
#7E7315 #157E73 #73157E
tetradic
#7E7315 #157E3F #15207E #7E1555
square
#7E7315 #157E3F #15207E #7E1555
split-complementary
#7E7315 #15557E #3F157E
monochromatic
#1A1804 #4A430C #7E7315 #B2A31E #DDCB31

Accessibility & contrast

On white

4.83
#7E7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7E7315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7315
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7315#FFFFFF#000000##FFFFFF
##7E73151.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#82741D
Tritanopia (blue-blind)
#886A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e7315;
/* rgb */ color: rgb(126, 115, 21);
/* oklch */ color: oklch(54.9% 0.108 102.2);
Tailwind
colors: {
  custom: {
    50: '#a79a5c',
    500: '#7e7315',
    950: '#000000',
  },
}
SCSS
$custom: #7e7315;
$custom-light: #a79a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7315",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 53.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54915,
    "c": 0.10792,
    "h": 102.2
  },
  "luminance": 0.16751
}

Semantic roles & 50–950 ramp

primary
#7E7315
secondary
#3C48B3
accent
#4DEE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7315

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

Preview Lab → · Contrast checker → · Palette generator →

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