#7E7015#7E7015

#7E7015 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.105 H 99.8°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E7015
RGBrgb(126, 112, 21)
HSLhsl(52, 71%, 29%)
HSVhsv(52, 83%, 49%)
CMYKcmyk(0%, 11.1%, 83.3%, 50.6%)
CIE-LABlab(47.08, -4.51, 48.03)
CIE-LCHlch(47.08, 48.24, 95.36°)
OKLaboklab(54.23% -0.018 0.1039)
OKLCHoklch(54.23% 0.105 99.8)
XYZxyz(14.5345, 16.0788, 3.0473)
Luminance0.1608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7015 #15237E
analogous
#7E3C15 #7E7015 #587E15
triadic
#7E7015 #157E70 #70157E
tetradic
#7E7015 #157E3C #15237E #7E1558
square
#7E7015 #157E3C #15237E #7E1558
split-complementary
#7E7015 #15587E #3C157E
monochromatic
#1A1704 #4A410C #7E7015 #B29F1E #DDC631

Accessibility & contrast

On white

4.98
#7E7015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E7015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7015
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7015#FFFFFF#000000##FFFFFF
##7E70151.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#80721C
Tritanopia (blue-blind)
#88675F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e7015;
/* rgb */ color: rgb(126, 112, 21);
/* oklch */ color: oklch(54.2% 0.105 99.8);
Tailwind
colors: {
  custom: {
    50: '#a7985c',
    500: '#7e7015',
    950: '#000000',
  },
}
SCSS
$custom: #7e7015;
$custom-light: #a7985c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7015",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 52,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54225,
    "c": 0.1054,
    "h": 99.8
  },
  "luminance": 0.16078
}

Semantic roles & 50–950 ramp

primary
#7E7015
secondary
#3C4CB3
accent
#52EE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E7015

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

Preview Lab → · Contrast checker → · Palette generator →

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