#7C8515#7C8515

#7C8515 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#7C8515
RGBrgb(124, 133, 21)
HSLhsl(65, 73%, 30%)
HSVhsv(65, 84%, 52%)
CMYKcmyk(6.8%, 0%, 84.2%, 47.8%)
CIE-LABlab(53.07, -16.93, 53.18)
CIE-LCHlch(53.07, 55.81, 107.66°)
OKLaboklab(58.97% -0.0525 0.1151)
OKLCHoklch(58.97% 0.126 114.5)
XYZxyz(16.8356, 21.1146, 3.8980)
Luminance0.2111 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8515 #1E1585
analogous
#855615 #7C8515 #448515
triadic
#7C8515 #157C85 #85157C
tetradic
#7C8515 #158556 #1E1585 #851544
square
#7C8515 #158556 #1E1585 #851544
split-complementary
#7C8515 #154485 #561585
monochromatic
#191B04 #4B500D #7C8515 #ADBA1D #D1DF35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8515#FFFFFF#000000##000000
##7C85151.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: #7c8515;
/* rgb */ color: rgb(124, 133, 21);
/* oklch */ color: oklch(59.0% 0.126 114.5);
Tailwind
colors: {
  custom: {
    50: '#a5a85f',
    500: '#7c8515',
    950: '#000000',
  },
}
SCSS
$custom: #7c8515;
$custom-light: #a5a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8515",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 21
  },
  "hsl": {
    "h": 64.821,
    "s": 72.727,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58968,
    "c": 0.12647,
    "h": 114.5
  },
  "luminance": 0.21114
}

Semantic roles & 50–950 ramp

primary
#7C8515
secondary
#463CB9
accent
#38EF47
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8515

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

Preview Lab → · Contrast checker → · Palette generator →

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