#7C8015#7C8015

#7C8015 is a mid, vivid yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.121 H 111.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7C8015
RGBrgb(124, 128, 21)
HSLhsl(62, 72%, 29%)
HSVhsv(62, 84%, 50%)
CMYKcmyk(3.1%, 0%, 83.6%, 49.8%)
CIE-LABlab(51.59, -14.28, 51.89)
CIE-LCHlch(51.59, 53.82, 105.39°)
OKLaboklab(57.77% -0.0452 0.1123)
OKLCHoklch(57.77% 0.121 111.9)
XYZxyz(16.1673, 19.7780, 3.6752)
Luminance0.1978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8015 #191580
analogous
#804F15 #7C8015 #478015
triadic
#7C8015 #157C80 #80157C
tetradic
#7C8015 #15804F #191580 #801547
square
#7C8015 #15804F #191580 #801547
split-complementary
#7C8015 #154780 #4F1580
monochromatic
#191A04 #494B0C #7C8015 #AFB51E #D7DD32

Accessibility & contrast

On white

4.24
#7C8015 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7C8015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8015
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8015#FFFFFF#000000##000000
##7C80151.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C20
Tritanopia (blue-blind)
#85786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c8015;
/* rgb */ color: rgb(124, 128, 21);
/* oklch */ color: oklch(57.8% 0.121 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a45e',
    500: '#7c8015',
    950: '#000000',
  },
}
SCSS
$custom: #7c8015;
$custom-light: #a5a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8015",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 62.243,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57774,
    "c": 0.12102,
    "h": 111.9
  },
  "luminance": 0.19778
}

Semantic roles & 50–950 ramp

primary
#7C8015
secondary
#403CB5
accent
#39EF40
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8015

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

Preview Lab → · Contrast checker → · Palette generator →

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