#7E7817#7E7817

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

Color values

HEX#7E7817
RGBrgb(126, 120, 23)
HSLhsl(57, 69%, 29%)
HSVhsv(57, 82%, 49%)
CMYKcmyk(0%, 4.8%, 81.7%, 50.6%)
CIE-LABlab(49.41, -8.92, 49.45)
CIE-LCHlch(49.41, 50.25, 100.22°)
OKLaboklab(56.08% -0.0302 0.1073)
OKLCHoklch(56.08% 0.112 105.7)
XYZxyz(15.4760, 17.9310, 3.4563)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7817 #171D7E
analogous
#7E4517 #7E7817 #517E17
triadic
#7E7817 #177E78 #78177E
tetradic
#7E7817 #177E45 #171D7E #7E1751
square
#7E7817 #177E45 #171D7E #7E1751
split-complementary
#7E7817 #17517E #45177E
monochromatic
#1A1905 #4A470E #7E7817 #B2A920 #DAD135

Accessibility & contrast

On white

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

On black

4.59
#7E7817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7817
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7817#FFFFFF#000000##000000
##7E78171.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e7817;
/* rgb */ color: rgb(126, 120, 23);
/* oklch */ color: oklch(56.1% 0.112 105.7);
Tailwind
colors: {
  custom: {
    50: '#a79e5e',
    500: '#7e7817',
    950: '#000000',
  },
}
SCSS
$custom: #7e7817;
$custom-light: #a79e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7817",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 56.505,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56085,
    "c": 0.1115,
    "h": 105.7
  },
  "luminance": 0.1793
}

Semantic roles & 50–950 ramp

primary
#7E7817
secondary
#3E45B3
accent
#46EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7817

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

Preview Lab → · Contrast checker → · Palette generator →

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