#7C7A17#7C7A17

#7C7A17 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.114 H 108.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7C7A17
RGBrgb(124, 122, 23)
HSLhsl(59, 69%, 29%)
HSVhsv(59, 81%, 49%)
CMYKcmyk(0%, 1.6%, 81.5%, 51.4%)
CIE-LABlab(49.82, -10.96, 49.74)
CIE-LCHlch(49.82, 50.94, 102.42°)
OKLaboklab(56.36% -0.0358 0.108)
OKLCHoklch(56.36% 0.114 108.3)
XYZxyz(15.4270, 18.2665, 3.5236)
Luminance0.1827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7A17 #17197C
analogous
#7C4817 #7C7A17 #4C7C17
triadic
#7C7A17 #177C7A #7A177C
tetradic
#7C7A17 #177C48 #17197C #7C174C
square
#7C7A17 #177C48 #17197C #7C174C
split-complementary
#7C7A17 #174C7C #48177C
monochromatic
#1A1905 #48470D #7C7A17 #B0AD21 #D9D634

Accessibility & contrast

On white

4.51
#7C7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7C7A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7A17
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7A17#FFFFFF#000000##000000
##7C7A171.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#867820
Tritanopia (blue-blind)
#867168
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7c7a17;
/* rgb */ color: rgb(124, 122, 23);
/* oklch */ color: oklch(56.4% 0.114 108.3);
Tailwind
colors: {
  custom: {
    50: '#a5a05e',
    500: '#7c7a17',
    950: '#000000',
  },
}
SCSS
$custom: #7c7a17;
$custom-light: #a5a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7a17",
  "rgb": {
    "r": 124,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 58.812,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56364,
    "c": 0.11382,
    "h": 108.3
  },
  "luminance": 0.18266
}

Semantic roles & 50–950 ramp

primary
#7C7A17
secondary
#3E40B1
accent
#40EC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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