#7D7B17#7D7B17

#7D7B17 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.115 H 108.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7D7B17
RGBrgb(125, 123, 23)
HSLhsl(59, 69%, 29%)
HSVhsv(59, 82%, 49%)
CMYKcmyk(0%, 1.6%, 81.6%, 51%)
CIE-LABlab(50.20, -11.04, 50.12)
CIE-LCHlch(50.20, 51.32, 102.42°)
OKLaboklab(56.69% -0.0361 0.1088)
OKLCHoklch(56.69% 0.115 108.3)
XYZxyz(15.6957, 18.5883, 3.5716)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7B17 #17197D
analogous
#7D4817 #7D7B17 #4C7D17
triadic
#7D7B17 #177D7B #7B177D
tetradic
#7D7B17 #177D48 #17197D #7D174C
square
#7D7B17 #177D48 #17197D #7D174C
split-complementary
#7D7B17 #174C7D #48177D
monochromatic
#1A1905 #49480D #7D7B17 #B1AE21 #DAD735

Accessibility & contrast

On white

4.45
#7D7B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7D7B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7B17
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7B17#FFFFFF#000000##000000
##7D7B171.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#877920
Tritanopia (blue-blind)
#877269
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7d7b17;
/* rgb */ color: rgb(125, 123, 23);
/* oklch */ color: oklch(56.7% 0.115 108.3);
Tailwind
colors: {
  custom: {
    50: '#a6a05e',
    500: '#7d7b17',
    950: '#000000',
  },
}
SCSS
$custom: #7d7b17;
$custom-light: #a6a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7b17",
  "rgb": {
    "r": 125,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 58.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56693,
    "c": 0.11463,
    "h": 108.3
  },
  "luminance": 0.18588
}

Semantic roles & 50–950 ramp

primary
#7D7B17
secondary
#3E40B2
accent
#3FEC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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