#7E7815#7E7815

#7E7815 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.112 H 105.8°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7E7815
RGBrgb(126, 120, 21)
HSLhsl(57, 71%, 29%)
HSVhsv(57, 83%, 49%)
CMYKcmyk(0%, 4.8%, 83.3%, 50.6%)
CIE-LABlab(49.40, -8.99, 50.06)
CIE-LCHlch(49.40, 50.87, 100.18°)
OKLaboklab(56.07% -0.0306 0.1082)
OKLCHoklch(56.07% 0.112 105.8)
XYZxyz(15.4567, 17.9233, 3.3547)
Luminance0.1792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7815 #151B7E
analogous
#7E4415 #7E7815 #507E15
triadic
#7E7815 #157E78 #78157E
tetradic
#7E7815 #157E44 #151B7E #7E1550
square
#7E7815 #157E44 #151B7E #7E1550
split-complementary
#7E7815 #15507E #44157E
monochromatic
#1A1904 #4A460C #7E7815 #B2AA1E #DDD331

Accessibility & contrast

On white

4.58
#7E7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7E7815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7815
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7815#FFFFFF#000000##000000
##7E78151.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#86771E
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7815;
/* rgb */ color: rgb(126, 120, 21);
/* oklch */ color: oklch(56.1% 0.112 105.8);
Tailwind
colors: {
  custom: {
    50: '#a79e5d',
    500: '#7e7815',
    950: '#000000',
  },
}
SCSS
$custom: #7e7815;
$custom-light: #a79e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7815",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 56.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56074,
    "c": 0.11248,
    "h": 105.8
  },
  "luminance": 0.17923
}

Semantic roles & 50–950 ramp

primary
#7E7815
secondary
#3C43B3
accent
#44EE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7815

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

Preview Lab → · Contrast checker → · Palette generator →

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