#7D7F17#7D7F17

#7D7F17 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.119 H 110.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7D7F17
RGBrgb(125, 127, 23)
HSLhsl(61, 69%, 29%)
HSVhsv(61, 82%, 50%)
CMYKcmyk(1.6%, 0%, 81.9%, 50.2%)
CIE-LABlab(51.38, -13.21, 51.16)
CIE-LCHlch(51.38, 52.84, 104.48°)
OKLaboklab(57.64% -0.0421 0.111)
OKLCHoklch(57.64% 0.119 110.8)
XYZxyz(16.2021, 19.6010, 3.7404)
Luminance0.1960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7F17 #19177F
analogous
#7F4D17 #7D7F17 #497F17
triadic
#7D7F17 #177D7F #7F177D
tetradic
#7D7F17 #177F4D #19177F #7F1749
square
#7D7F17 #177F4D #19177F #7F1749
split-complementary
#7D7F17 #17497F #4D177F
monochromatic
#191A05 #4A4B0E #7D7F17 #B0B320 #D7DB36

Accessibility & contrast

On white

4.27
#7D7F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7D7F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7F17
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7F17#FFFFFF#000000##000000
##7D7F171.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7C21
Tritanopia (blue-blind)
#86766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7f17;
/* rgb */ color: rgb(125, 127, 23);
/* oklch */ color: oklch(57.6% 0.119 110.8);
Tailwind
colors: {
  custom: {
    50: '#a6a35f',
    500: '#7d7f17',
    950: '#000000',
  },
}
SCSS
$custom: #7d7f17;
$custom-light: #a6a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7f17",
  "rgb": {
    "r": 125,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 61.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57636,
    "c": 0.11876,
    "h": 110.8
  },
  "luminance": 0.19601
}

Semantic roles & 50–950 ramp

primary
#7D7F17
secondary
#403EB4
accent
#3CEC3F
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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