#7C8516#7C8516

#7C8516 is a mid, vivid yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.126 H 114.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7C8516
RGBrgb(124, 133, 22)
HSLhsl(65, 72%, 30%)
HSVhsv(65, 83%, 52%)
CMYKcmyk(6.8%, 0%, 83.5%, 47.8%)
CIE-LABlab(53.08, -16.90, 52.91)
CIE-LCHlch(53.08, 55.54, 107.71°)
OKLaboklab(58.97% -0.0523 0.1146)
OKLCHoklch(58.97% 0.126 114.5)
XYZxyz(16.8451, 21.1184, 3.9478)
Luminance0.2112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8516 #1F1685
analogous
#855616 #7C8516 #448516
triadic
#7C8516 #167C85 #85167C
tetradic
#7C8516 #168556 #1F1685 #851644
square
#7C8516 #168556 #1F1685 #851644
split-complementary
#7C8516 #164485 #561685
monochromatic
#1A1C05 #4B500D #7C8516 #ADBA1F #D0DE37

Accessibility & contrast

On white

4.02
#7C8516 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7C8516 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8516
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8516#FFFFFF#000000##000000
##7C85161.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8F8021
Tritanopia (blue-blind)
#857D71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c8516;
/* rgb */ color: rgb(124, 133, 22);
/* oklch */ color: oklch(59.0% 0.126 114.5);
Tailwind
colors: {
  custom: {
    50: '#a5a85f',
    500: '#7c8516',
    950: '#000000',
  },
}
SCSS
$custom: #7c8516;
$custom-light: #a5a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8516",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 22
  },
  "hsl": {
    "h": 64.865,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58973,
    "c": 0.12602,
    "h": 114.5
  },
  "luminance": 0.21118
}

Semantic roles & 50–950 ramp

primary
#7C8516
secondary
#483EB9
accent
#39EE48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8516

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

Preview Lab → · Contrast checker → · Palette generator →

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