#7D8217#7D8217

#7D8217 is a mid, vivid yellow. Relative luminance 0.204; OKLCH L 58.3% C 0.122 H 112.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7D8217
RGBrgb(125, 130, 23)
HSLhsl(63, 70%, 30%)
HSVhsv(63, 82%, 51%)
CMYKcmyk(3.8%, 0%, 82.3%, 49%)
CIE-LABlab(52.27, -14.82, 51.95)
CIE-LCHlch(52.27, 54.02, 105.92°)
OKLaboklab(58.35% -0.0466 0.1127)
OKLCHoklch(58.35% 0.122 112.4)
XYZxyz(16.5953, 20.3875, 3.8714)
Luminance0.2039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8217 #1C1782
analogous
#825217 #7D8217 #478217
triadic
#7D8217 #177D82 #82177D
tetradic
#7D8217 #178252 #1C1782 #821747
square
#7D8217 #178252 #1C1782 #821747
split-complementary
#7D8217 #174782 #521782
monochromatic
#191A05 #4B4E0E #7D8217 #AFB620 #D4DC38

Accessibility & contrast

On white

4.14
#7D8217 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7D8217 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8217
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8217#FFFFFF#000000##000000
##7D82171.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8217;
/* rgb */ color: rgb(125, 130, 23);
/* oklch */ color: oklch(58.3% 0.122 112.4);
Tailwind
colors: {
  custom: {
    50: '#a6a65f',
    500: '#7d8217',
    950: '#000000',
  },
}
SCSS
$custom: #7d8217;
$custom-light: #a6a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8217",
  "rgb": {
    "r": 125,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 62.804,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.58348,
    "c": 0.12196,
    "h": 112.4
  },
  "luminance": 0.20387
}

Semantic roles & 50–950 ramp

primary
#7D8217
secondary
#443EB6
accent
#3BED43
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8217

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

Preview Lab → · Contrast checker → · Palette generator →

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