#7C7815#7C7815

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

Color values

HEX#7C7815
RGBrgb(124, 120, 21)
HSLhsl(58, 71%, 28%)
HSVhsv(58, 83%, 49%)
CMYKcmyk(0%, 3.2%, 83.1%, 51.4%)
CIE-LABlab(49.22, -9.93, 49.83)
CIE-LCHlch(49.22, 50.81, 101.27°)
OKLaboklab(55.88% -0.0331 0.1078)
OKLCHoklch(55.88% 0.113 107.1)
XYZxyz(15.1646, 17.7727, 3.3410)
Luminance0.1777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7815 #15197C
analogous
#7C4415 #7C7815 #4C7C15
triadic
#7C7815 #157C78 #78157C
tetradic
#7C7815 #157C44 #15197C #7C154C
square
#7C7815 #157C44 #15197C #7C154C
split-complementary
#7C7815 #154C7C #44157C
monochromatic
#1A1904 #48450C #7C7815 #B0AB1E #DCD530

Accessibility & contrast

On white

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

On black

4.55
#7C7815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7C7815#FFFFFF#000000##FFFFFF
##7C78151.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c7815;
/* rgb */ color: rgb(124, 120, 21);
/* oklch */ color: oklch(55.9% 0.113 107.1);
Tailwind
colors: {
  custom: {
    50: '#a59e5d',
    500: '#7c7815',
    950: '#000000',
  },
}
SCSS
$custom: #7c7815;
$custom-light: #a59e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7815",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 57.67,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55884,
    "c": 0.11281,
    "h": 107.1
  },
  "luminance": 0.17772
}

Semantic roles & 50–950 ramp

primary
#7C7815
secondary
#3C40B1
accent
#41EE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7815

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

Preview Lab → · Contrast checker → · Palette generator →

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