#7C8517#7C8517

#7C8517 is a mid, vivid yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.126 H 114.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7C8517
RGBrgb(124, 133, 23)
HSLhsl(65, 71%, 31%)
HSVhsv(65, 83%, 52%)
CMYKcmyk(6.8%, 0%, 82.7%, 47.8%)
CIE-LABlab(53.08, -16.86, 52.63)
CIE-LCHlch(53.08, 55.26, 107.77°)
OKLaboklab(58.98% -0.0522 0.1142)
OKLCHoklch(58.98% 0.126 114.5)
XYZxyz(16.8549, 21.1223, 3.9996)
Luminance0.2112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8517 #201785
analogous
#855717 #7C8517 #458517
triadic
#7C8517 #177C85 #85177C
tetradic
#7C8517 #178557 #201785 #851745
square
#7C8517 #178557 #201785 #851745
split-complementary
#7C8517 #174585 #571785
monochromatic
#1B1D05 #4B510E #7C8517 #ADB920 #CFDD3A

Accessibility & contrast

On white

4.02
#7C8517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7C8517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8517
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8517#FFFFFF#000000##000000
##7C85171.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#857D71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c8517;
/* rgb */ color: rgb(124, 133, 23);
/* oklch */ color: oklch(59.0% 0.126 114.5);
Tailwind
colors: {
  custom: {
    50: '#a5a860',
    500: '#7c8517',
    950: '#000000',
  },
}
SCSS
$custom: #7c8517;
$custom-light: #a5a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8517",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 64.909,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58978,
    "c": 0.12557,
    "h": 114.5
  },
  "luminance": 0.21122
}

Semantic roles & 50–950 ramp

primary
#7C8517
secondary
#493FB9
accent
#3BED49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8517

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

Preview Lab → · Contrast checker → · Palette generator →

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