#7D7C17#7D7C17

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

Color values

HEX#7D7C17
RGBrgb(125, 124, 23)
HSLhsl(59, 69%, 29%)
HSVhsv(59, 82%, 49%)
CMYKcmyk(0%, 0.8%, 81.6%, 51%)
CIE-LABlab(50.50, -11.58, 50.38)
CIE-LCHlch(50.50, 51.69, 102.95°)
OKLaboklab(56.93% -0.0376 0.1094)
OKLCHoklch(56.93% 0.116 109)
XYZxyz(15.8204, 18.8376, 3.6131)
Luminance0.1884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7C17 #17187D
analogous
#7D4917 #7D7C17 #4B7D17
triadic
#7D7C17 #177D7C #7C177D
tetradic
#7D7C17 #177D49 #17187D #7D174B
square
#7D7C17 #177D49 #17187D #7D174B
split-complementary
#7D7C17 #174B7D #49177D
monochromatic
#1A1A05 #49490D #7D7C17 #B1AF21 #DAD835

Accessibility & contrast

On white

4.40
#7D7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7D7C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7C17
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7C17#FFFFFF#000000##000000
##7D7C171.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#887A20
Tritanopia (blue-blind)
#87736A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7d7c17;
/* rgb */ color: rgb(125, 124, 23);
/* oklch */ color: oklch(56.9% 0.116 109.0);
Tailwind
colors: {
  custom: {
    50: '#a6a15e',
    500: '#7d7c17',
    950: '#000000',
  },
}
SCSS
$custom: #7d7c17;
$custom-light: #a6a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7c17",
  "rgb": {
    "r": 125,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 59.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56928,
    "c": 0.11564,
    "h": 109
  },
  "luminance": 0.18837
}

Semantic roles & 50–950 ramp

primary
#7D7C17
secondary
#3E3FB2
accent
#3EEC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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