#7C7D17#7C7D17

#7C7D17 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.1% C 0.117 H 110.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7C7D17
RGBrgb(124, 125, 23)
HSLhsl(61, 69%, 29%)
HSVhsv(61, 82%, 49%)
CMYKcmyk(0.8%, 0%, 81.6%, 51%)
CIE-LABlab(50.70, -12.59, 50.53)
CIE-LCHlch(50.70, 52.08, 103.99°)
OKLaboklab(57.07% -0.0403 0.1097)
OKLCHoklch(57.07% 0.117 110.2)
XYZxyz(15.8010, 19.0146, 3.6483)
Luminance0.1901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7D17 #18177D
analogous
#7D4B17 #7C7D17 #497D17
triadic
#7C7D17 #177C7D #7D177C
tetradic
#7C7D17 #177D4B #18177D #7D1749
square
#7C7D17 #177D4B #18177D #7D1749
split-complementary
#7C7D17 #17497D #4B177D
monochromatic
#1A1A05 #49490D #7C7D17 #AFB121 #D8DA35

Accessibility & contrast

On white

4.37
#7C7D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#7C7D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7D17
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7D17#FFFFFF#000000##000000
##7C7D171.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#897A20
Tritanopia (blue-blind)
#85756A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c7d17;
/* rgb */ color: rgb(124, 125, 23);
/* oklch */ color: oklch(57.1% 0.117 110.2);
Tailwind
colors: {
  custom: {
    50: '#a5a25f',
    500: '#7c7d17',
    950: '#000000',
  },
}
SCSS
$custom: #7c7d17;
$custom-light: #a5a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7d17",
  "rgb": {
    "r": 124,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 60.588,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.57072,
    "c": 0.11691,
    "h": 110.2
  },
  "luminance": 0.19014
}

Semantic roles & 50–950 ramp

primary
#7C7D17
secondary
#3F3EB2
accent
#3CEC3E
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7C7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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