#7D8317#7D8317

#7D8317 is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.123 H 113.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7D8317
RGBrgb(125, 131, 23)
HSLhsl(63, 70%, 30%)
HSVhsv(63, 82%, 51%)
CMYKcmyk(4.6%, 0%, 82.4%, 48.6%)
CIE-LABlab(52.57, -15.35, 52.21)
CIE-LCHlch(52.57, 54.42, 106.39°)
OKLaboklab(58.59% -0.048 0.1133)
OKLCHoklch(58.59% 0.123 113)
XYZxyz(16.7290, 20.6548, 3.9160)
Luminance0.2065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8317 #1D1783
analogous
#835317 #7D8317 #478317
triadic
#7D8317 #177D83 #83177D
tetradic
#7D8317 #178353 #1D1783 #831747
square
#7D8317 #178353 #1D1783 #831747
split-complementary
#7D8317 #174783 #531783
monochromatic
#1A1B05 #4B4F0E #7D8317 #AFB720 #D3DC38

Accessibility & contrast

On white

4.09
#7D8317 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#7D8317 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8317
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8317#FFFFFF#000000##000000
##7D83171.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#867B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7d8317;
/* rgb */ color: rgb(125, 131, 23);
/* oklch */ color: oklch(58.6% 0.123 113.0);
Tailwind
colors: {
  custom: {
    50: '#a6a660',
    500: '#7d8317',
    950: '#000000',
  },
}
SCSS
$custom: #7d8317;
$custom-light: #a6a660;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8317",
  "rgb": {
    "r": 125,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 63.333,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58586,
    "c": 0.12305,
    "h": 113
  },
  "luminance": 0.20654
}

Semantic roles & 50–950 ramp

primary
#7D8317
secondary
#453FB7
accent
#3BED45
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8317

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

Preview Lab → · Contrast checker → · Palette generator →

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