#7C7C17#7C7C17

#7C7C17 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.116 H 109.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7C7C17
RGBrgb(124, 124, 23)
HSLhsl(60, 69%, 29%)
HSVhsv(60, 81%, 49%)
CMYKcmyk(0%, 0%, 81.5%, 51.4%)
CIE-LABlab(50.41, -12.05, 50.27)
CIE-LCHlch(50.41, 51.69, 103.48°)
OKLaboklab(56.84% -0.0388 0.1092)
OKLCHoklch(56.84% 0.116 109.6)
XYZxyz(15.6751, 18.7627, 3.6063)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7C17 #17177C
analogous
#7C4A17 #7C7C17 #4A7C17
triadic
#7C7C17 #177C7C #7C177C
tetradic
#7C7C17 #177C4A #17177C #7C174A
square
#7C7C17 #177C4A #17177C #7C174A
split-complementary
#7C7C17 #174A7C #4A177C
monochromatic
#1A1A05 #48480D #7C7C17 #B0B021 #D9D934

Accessibility & contrast

On white

4.42
#7C7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7C7C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7C17
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7C17#FFFFFF#000000##000000
##7C7C171.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#887920
Tritanopia (blue-blind)
#85746A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7c7c17;
/* rgb */ color: rgb(124, 124, 23);
/* oklch */ color: oklch(56.8% 0.116 109.6);
Tailwind
colors: {
  custom: {
    50: '#a5a15e',
    500: '#7c7c17',
    950: '#000000',
  },
}
SCSS
$custom: #7c7c17;
$custom-light: #a5a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7c17",
  "rgb": {
    "r": 124,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 60,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56836,
    "c": 0.11587,
    "h": 109.6
  },
  "luminance": 0.18762
}

Semantic roles & 50–950 ramp

primary
#7C7C17
secondary
#3E3EB1
accent
#3CEC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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