#7C8917#7C8917

#7C8917 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.130 H 116.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7C8917
RGBrgb(124, 137, 23)
HSLhsl(67, 71%, 31%)
HSVhsv(67, 83%, 54%)
CMYKcmyk(9.5%, 0%, 83.2%, 46.3%)
CIE-LABlab(54.28, -18.95, 53.67)
CIE-LCHlch(54.28, 56.92, 109.45°)
OKLaboklab(59.94% -0.0579 0.1165)
OKLCHoklch(59.94% 0.13 116.4)
XYZxyz(17.4130, 22.2385, 4.1856)
Luminance0.2224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8917 #241789
analogous
#895D17 #7C8917 #438917
triadic
#7C8917 #177C89 #89177C
tetradic
#7C8917 #17895D #241789 #891743
square
#7C8917 #17895D #241789 #891743
split-complementary
#7C8917 #174389 #5D1789
monochromatic
#1D2005 #4D550E #7C8917 #ABBD20 #CCDE3C

Accessibility & contrast

On white

3.85
#7C8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#7C8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8917
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8917#FFFFFF#000000##000000
##7C89171.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#848175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7c8917;
/* rgb */ color: rgb(124, 137, 23);
/* oklch */ color: oklch(59.9% 0.130 116.4);
Tailwind
colors: {
  custom: {
    50: '#a5ab60',
    500: '#7c8917',
    950: '#000000',
  },
}
SCSS
$custom: #7c8917;
$custom-light: #a5ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8917",
  "rgb": {
    "r": 124,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 66.842,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59938,
    "c": 0.13008,
    "h": 116.4
  },
  "luminance": 0.22238
}

Semantic roles & 50–950 ramp

primary
#7C8917
secondary
#4D3FBD
accent
#3AEE4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8917

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

Preview Lab → · Contrast checker → · Palette generator →

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