#7D7917#7D7917

#7D7917 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.113 H 107.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7D7917
RGBrgb(125, 121, 23)
HSLhsl(58, 69%, 29%)
HSVhsv(58, 82%, 49%)
CMYKcmyk(0%, 3.2%, 81.6%, 51%)
CIE-LABlab(49.61, -9.94, 49.60)
CIE-LCHlch(49.61, 50.58, 101.33°)
OKLaboklab(56.22% -0.033 0.1077)
OKLCHoklch(56.22% 0.113 107)
XYZxyz(15.4501, 18.0971, 3.4897)
Luminance0.1810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7917 #171B7D
analogous
#7D4617 #7D7917 #4E7D17
triadic
#7D7917 #177D79 #79177D
tetradic
#7D7917 #177D46 #171B7D #7D174E
square
#7D7917 #177D46 #171B7D #7D174E
split-complementary
#7D7917 #174E7D #46177D
monochromatic
#1A1905 #49470D #7D7917 #B1AB21 #DAD335

Accessibility & contrast

On white

4.55
#7D7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#7D7917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7917
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7917#FFFFFF#000000##000000
##7D79171.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#867820
Tritanopia (blue-blind)
#877067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7d7917;
/* rgb */ color: rgb(125, 121, 23);
/* oklch */ color: oklch(56.2% 0.113 107.0);
Tailwind
colors: {
  custom: {
    50: '#a69f5e',
    500: '#7d7917',
    950: '#000000',
  },
}
SCSS
$custom: #7d7917;
$custom-light: #a69f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7917",
  "rgb": {
    "r": 125,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 57.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56223,
    "c": 0.11263,
    "h": 107
  },
  "luminance": 0.18097
}

Semantic roles & 50–950 ramp

primary
#7D7917
secondary
#3E43B2
accent
#43EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D7917

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

Preview Lab → · Contrast checker → · Palette generator →

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