#7C7817#7C7817

#7C7817 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.112 H 107.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7C7817
RGBrgb(124, 120, 23)
HSLhsl(58, 69%, 29%)
HSVhsv(58, 81%, 49%)
CMYKcmyk(0%, 3.2%, 81.5%, 51.4%)
CIE-LABlab(49.23, -9.86, 49.22)
CIE-LCHlch(49.23, 50.20, 101.32°)
OKLaboklab(55.89% -0.0327 0.1069)
OKLCHoklch(55.89% 0.112 107)
XYZxyz(15.1839, 17.7804, 3.4426)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7817 #171B7C
analogous
#7C4617 #7C7817 #4E7C17
triadic
#7C7817 #177C78 #78177C
tetradic
#7C7817 #177C46 #171B7C #7C174E
square
#7C7817 #177C46 #171B7C #7C174E
split-complementary
#7C7817 #174E7C #46177C
monochromatic
#1A1905 #48460D #7C7817 #B0AA21 #D9D334

Accessibility & contrast

On white

4.61
#7C7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7C7817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7817
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7817#FFFFFF#000000##FFFFFF
##7C78171.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c7817;
/* rgb */ color: rgb(124, 120, 23);
/* oklch */ color: oklch(55.9% 0.112 107.0);
Tailwind
colors: {
  custom: {
    50: '#a59e5e',
    500: '#7c7817',
    950: '#000000',
  },
}
SCSS
$custom: #7c7817;
$custom-light: #a59e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7817",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 57.624,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.55894,
    "c": 0.11182,
    "h": 107
  },
  "luminance": 0.1778
}

Semantic roles & 50–950 ramp

primary
#7C7817
secondary
#3E43B1
accent
#43EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7817

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

Preview Lab → · Contrast checker → · Palette generator →

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