#7D7817#7D7817

#7D7817 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.0% C 0.112 H 106.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7D7817
RGBrgb(125, 120, 23)
HSLhsl(57, 69%, 29%)
HSVhsv(57, 82%, 49%)
CMYKcmyk(0%, 4%, 81.6%, 51%)
CIE-LABlab(49.32, -9.39, 49.34)
CIE-LCHlch(49.32, 50.22, 100.77°)
OKLaboklab(55.99% -0.0315 0.1071)
OKLCHoklch(55.99% 0.112 106.4)
XYZxyz(15.3292, 17.8554, 3.4494)
Luminance0.1785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7817 #171C7D
analogous
#7D4517 #7D7817 #4F7D17
triadic
#7D7817 #177D78 #78177D
tetradic
#7D7817 #177D45 #171C7D #7D174F
square
#7D7817 #177D45 #171C7D #7D174F
split-complementary
#7D7817 #174F7D #45177D
monochromatic
#1A1905 #49460D #7D7817 #B1AA21 #DAD235

Accessibility & contrast

On white

4.59
#7D7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7D7817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7817
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7817#FFFFFF#000000##FFFFFF
##7D78171.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#876F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d7817;
/* rgb */ color: rgb(125, 120, 23);
/* oklch */ color: oklch(56.0% 0.112 106.4);
Tailwind
colors: {
  custom: {
    50: '#a69e5e',
    500: '#7d7817',
    950: '#000000',
  },
}
SCSS
$custom: #7d7817;
$custom-light: #a69e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7817",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 57.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.55989,
    "c": 0.11165,
    "h": 106.4
  },
  "luminance": 0.17855
}

Semantic roles & 50–950 ramp

primary
#7D7817
secondary
#3E44B2
accent
#45EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D7817

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

Preview Lab → · Contrast checker → · Palette generator →

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