#7C7917#7C7917

#7C7917 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.113 H 107.7°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7C7917
RGBrgb(124, 121, 23)
HSLhsl(58, 69%, 29%)
HSVhsv(58, 81%, 49%)
CMYKcmyk(0%, 2.4%, 81.5%, 51.4%)
CIE-LABlab(49.52, -10.41, 49.48)
CIE-LCHlch(49.52, 50.57, 101.88°)
OKLaboklab(56.13% -0.0343 0.1075)
OKLCHoklch(56.13% 0.113 107.7)
XYZxyz(15.3048, 18.0222, 3.4829)
Luminance0.1802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7917 #171A7C
analogous
#7C4717 #7C7917 #4D7C17
triadic
#7C7917 #177C79 #79177C
tetradic
#7C7917 #177C47 #171A7C #7C174D
square
#7C7917 #177C47 #171A7C #7C174D
split-complementary
#7C7917 #174D7C #47177C
monochromatic
#1A1905 #48470D #7C7917 #B0AB21 #D9D434

Accessibility & contrast

On white

4.56
#7C7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7C7917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7917
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7917#FFFFFF#000000##000000
##7C79171.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#867720
Tritanopia (blue-blind)
#867067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7c7917;
/* rgb */ color: rgb(124, 121, 23);
/* oklch */ color: oklch(56.1% 0.113 107.7);
Tailwind
colors: {
  custom: {
    50: '#a59f5e',
    500: '#7c7917',
    950: '#000000',
  },
}
SCSS
$custom: #7c7917;
$custom-light: #a59f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7917",
  "rgb": {
    "r": 124,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 58.218,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56129,
    "c": 0.11281,
    "h": 107.7
  },
  "luminance": 0.18022
}

Semantic roles & 50–950 ramp

primary
#7C7917
secondary
#3E41B1
accent
#41EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7917

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

Preview Lab → · Contrast checker → · Palette generator →

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