#7C8117#7C8117

#7C8117 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.121 H 112.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7C8117
RGBrgb(124, 129, 23)
HSLhsl(63, 70%, 30%)
HSVhsv(63, 82%, 51%)
CMYKcmyk(3.9%, 0%, 82.2%, 49.4%)
CIE-LABlab(51.89, -14.74, 51.58)
CIE-LCHlch(51.89, 53.64, 105.95°)
OKLaboklab(58.02% -0.0463 0.112)
OKLCHoklch(58.02% 0.121 112.5)
XYZxyz(16.3177, 20.0479, 3.8205)
Luminance0.2005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8117 #1C1781
analogous
#815117 #7C8117 #478117
triadic
#7C8117 #177C81 #81177C
tetradic
#7C8117 #178151 #1C1781 #811747
square
#7C8117 #178151 #1C1781 #811747
split-complementary
#7C8117 #174781 #511781
monochromatic
#191A05 #4A4D0E #7C8117 #AEB520 #D4DB37

Accessibility & contrast

On white

4.19
#7C8117 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7C8117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8117
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8117#FFFFFF#000000##000000
##7C81171.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B00
Deuteranopia (green-blind)
#8C7D21
Tritanopia (blue-blind)
#85796E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8117;
/* rgb */ color: rgb(124, 129, 23);
/* oklch */ color: oklch(58.0% 0.121 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a55f',
    500: '#7c8117',
    950: '#000000',
  },
}
SCSS
$custom: #7c8117;
$custom-light: #a5a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8117",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 62.83,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.58022,
    "c": 0.12118,
    "h": 112.5
  },
  "luminance": 0.20047
}

Semantic roles & 50–950 ramp

primary
#7C8117
secondary
#443EB5
accent
#3BED44
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8117

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

Preview Lab → · Contrast checker → · Palette generator →

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