#7C8617#7C8617

#7C8617 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.127 H 115.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7C8617
RGBrgb(124, 134, 23)
HSLhsl(65, 71%, 31%)
HSVhsv(65, 83%, 53%)
CMYKcmyk(7.5%, 0%, 82.8%, 47.5%)
CIE-LABlab(53.38, -17.39, 52.89)
CIE-LCHlch(53.38, 55.67, 108.20°)
OKLaboklab(59.22% -0.0536 0.1148)
OKLCHoklch(59.22% 0.127 115)
XYZxyz(16.9924, 21.3975, 4.0454)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8617 #211786
analogous
#865817 #7C8617 #458617
triadic
#7C8617 #177C86 #86177C
tetradic
#7C8617 #178658 #211786 #861745
square
#7C8617 #178658 #211786 #861745
split-complementary
#7C8617 #174586 #581786
monochromatic
#1B1E05 #4C520E #7C8617 #ACBA20 #CFDD3A

Accessibility & contrast

On white

3.98
#7C8617 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#7C8617 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8617
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8617#FFFFFF#000000##000000
##7C86171.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#908022
Tritanopia (blue-blind)
#857E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c8617;
/* rgb */ color: rgb(124, 134, 23);
/* oklch */ color: oklch(59.2% 0.127 115.0);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7c8617',
    950: '#000000',
  },
}
SCSS
$custom: #7c8617;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8617",
  "rgb": {
    "r": 124,
    "g": 134,
    "b": 23
  },
  "hsl": {
    "h": 65.405,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59218,
    "c": 0.12668,
    "h": 115
  },
  "luminance": 0.21397
}

Semantic roles & 50–950 ramp

primary
#7C8617
secondary
#4A3FBA
accent
#3AED4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C8617

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

Preview Lab → · Contrast checker → · Palette generator →

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