#7C8417#7C8417

#7C8417 is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.124 H 114.0°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7C8417
RGBrgb(124, 132, 23)
HSLhsl(64, 70%, 30%)
HSVhsv(64, 83%, 52%)
CMYKcmyk(6.1%, 0%, 82.6%, 48.2%)
CIE-LABlab(52.78, -16.34, 52.36)
CIE-LCHlch(52.78, 54.85, 107.33°)
OKLaboklab(58.74% -0.0507 0.1137)
OKLCHoklch(58.74% 0.124 114)
XYZxyz(16.7186, 20.8498, 3.9542)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8417 #1F1784
analogous
#845617 #7C8417 #458417
triadic
#7C8417 #177C84 #84177C
tetradic
#7C8417 #178456 #1F1784 #841745
square
#7C8417 #178456 #1F1784 #841745
split-complementary
#7C8417 #174584 #561784
monochromatic
#1A1C05 #4B500E #7C8417 #ADB820 #D0DC39

Accessibility & contrast

On white

4.06
#7C8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#7C8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8417
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8417#FFFFFF#000000##000000
##7C84171.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#857C70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c8417;
/* rgb */ color: rgb(124, 132, 23);
/* oklch */ color: oklch(58.7% 0.124 114.0);
Tailwind
colors: {
  custom: {
    50: '#a5a760',
    500: '#7c8417',
    950: '#000000',
  },
}
SCSS
$custom: #7c8417;
$custom-light: #a5a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8417",
  "rgb": {
    "r": 124,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 64.404,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58739,
    "c": 0.12446,
    "h": 114
  },
  "luminance": 0.20849
}

Semantic roles & 50–950 ramp

primary
#7C8417
secondary
#483FB8
accent
#3BED48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8417

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

Preview Lab → · Contrast checker → · Palette generator →

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