#7C8014#7C8014

#7C8014 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.95:1 contrast (WCAG AA passes).

Color values

HEX#7C8014
RGBrgb(124, 128, 20)
HSLhsl(62, 73%, 29%)
HSVhsv(62, 84%, 50%)
CMYKcmyk(3.1%, 0%, 84.4%, 49.8%)
CIE-LABlab(51.58, -14.31, 52.17)
CIE-LCHlch(51.58, 54.09, 105.34°)
OKLaboklab(57.77% -0.0453 0.1127)
OKLCHoklch(57.77% 0.121 111.9)
XYZxyz(16.1582, 19.7744, 3.6273)
Luminance0.1977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8014 #181480
analogous
#804E14 #7C8014 #468014
triadic
#7C8014 #147C80 #80147C
tetradic
#7C8014 #14804E #181480 #801446
square
#7C8014 #14804E #181480 #801446
split-complementary
#7C8014 #144680 #4E1480
monochromatic
#1A1A04 #494B0C #7C8014 #AFB51C #D8DF30

Accessibility & contrast

On white

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

On black

4.95
#7C8014 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8014
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8014#FFFFFF#000000##000000
##7C80141.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8014;
/* rgb */ color: rgb(124, 128, 20);
/* oklch */ color: oklch(57.8% 0.121 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a45e',
    500: '#7c8014',
    950: '#000000',
  },
}
SCSS
$custom: #7c8014;
$custom-light: #a5a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8014",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 20
  },
  "hsl": {
    "h": 62.222,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5777,
    "c": 0.12146,
    "h": 111.9
  },
  "luminance": 0.19774
}

Semantic roles & 50–950 ramp

primary
#7C8014
secondary
#3F3BB5
accent
#38F03F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8014

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

Preview Lab → · Contrast checker → · Palette generator →

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