#7D7017#7D7017

#7D7017 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.1% C 0.104 H 100.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7D7017
RGBrgb(125, 112, 23)
HSLhsl(52, 69%, 29%)
HSVhsv(52, 82%, 49%)
CMYKcmyk(0%, 10.4%, 81.6%, 51%)
CIE-LABlab(46.99, -4.91, 47.26)
CIE-LCHlch(46.99, 47.51, 95.93°)
OKLaboklab(54.14% -0.0189 0.1027)
OKLCHoklch(54.14% 0.104 100.4)
XYZxyz(14.4070, 16.0109, 3.1420)
Luminance0.1601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7017 #17247D
analogous
#7D3D17 #7D7017 #577D17
triadic
#7D7017 #177D70 #70177D
tetradic
#7D7017 #177D3D #17247D #7D1757
square
#7D7017 #177D3D #17247D #7D1757
split-complementary
#7D7017 #17577D #3D177D
monochromatic
#1A1705 #49420D #7D7017 #B19E21 #DAC535

Accessibility & contrast

On white

5.00
#7D7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7D7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7017
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7017#FFFFFF#000000##FFFFFF
##7D70171.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#7F721E
Tritanopia (blue-blind)
#87675F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d7017;
/* rgb */ color: rgb(125, 112, 23);
/* oklch */ color: oklch(54.1% 0.104 100.4);
Tailwind
colors: {
  custom: {
    50: '#a6985d',
    500: '#7d7017',
    950: '#000000',
  },
}
SCSS
$custom: #7d7017;
$custom-light: #a6985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7017",
  "rgb": {
    "r": 125,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 52.353,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54135,
    "c": 0.10439,
    "h": 100.4
  },
  "luminance": 0.1601
}

Semantic roles & 50–950 ramp

primary
#7D7017
secondary
#3E4DB2
accent
#52EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7D7017

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

Preview Lab → · Contrast checker → · Palette generator →

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