#7C8717#7C8717

#7C8717 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.128 H 115.5°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7C8717
RGBrgb(124, 135, 23)
HSLhsl(66, 71%, 31%)
HSVhsv(66, 83%, 53%)
CMYKcmyk(8.1%, 0%, 83%, 47.1%)
CIE-LABlab(53.68, -17.91, 53.15)
CIE-LCHlch(53.68, 56.09, 108.62°)
OKLaboklab(59.46% -0.055 0.1154)
OKLCHoklch(59.46% 0.128 115.5)
XYZxyz(17.1313, 21.6752, 4.0917)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8717 #221787
analogous
#875A17 #7C8717 #448717
triadic
#7C8717 #177C87 #87177C
tetradic
#7C8717 #17875A #221787 #871744
square
#7C8717 #17875A #221787 #871744
split-complementary
#7C8717 #174487 #5A1787
monochromatic
#1C1E05 #4C530E #7C8717 #ACBB20 #CEDE3B

Accessibility & contrast

On white

3.94
#7C8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#7C8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8717
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8717#FFFFFF#000000##000000
##7C87171.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#857F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c8717;
/* rgb */ color: rgb(124, 135, 23);
/* oklch */ color: oklch(59.5% 0.128 115.5);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7c8717',
    950: '#000000',
  },
}
SCSS
$custom: #7c8717;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8717",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 65.893,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59458,
    "c": 0.12781,
    "h": 115.5
  },
  "luminance": 0.21675
}

Semantic roles & 50–950 ramp

primary
#7C8717
secondary
#4B3FBB
accent
#3AEE4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C8717

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

Preview Lab → · Contrast checker → · Palette generator →

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