#7C8013#7C8013

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

Color values

HEX#7C8013
RGBrgb(124, 128, 19)
HSLhsl(62, 74%, 29%)
HSVhsv(62, 85%, 50%)
CMYKcmyk(3.1%, 0%, 85.2%, 49.8%)
CIE-LABlab(51.58, -14.35, 52.43)
CIE-LCHlch(51.58, 54.36, 105.30°)
OKLaboklab(57.77% -0.0455 0.1131)
OKLCHoklch(57.77% 0.122 111.9)
XYZxyz(16.1495, 19.7709, 3.5814)
Luminance0.1977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8013 #171380
analogous
#804E13 #7C8013 #468013
triadic
#7C8013 #137C80 #80137C
tetradic
#7C8013 #13804E #171380 #801346
square
#7C8013 #13804E #171380 #801346
split-complementary
#7C8013 #134680 #4E1380
monochromatic
#1A1B04 #484B0B #7C8013 #B0B51B #D9E02D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8013#FFFFFF#000000##000000
##7C80131.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)
#8B7C1E
Tritanopia (blue-blind)
#85776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c8013;
/* rgb */ color: rgb(124, 128, 19);
/* oklch */ color: oklch(57.8% 0.122 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a45e',
    500: '#7c8013',
    950: '#000000',
  },
}
SCSS
$custom: #7c8013;
$custom-light: #a5a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8013",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 19
  },
  "hsl": {
    "h": 62.202,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57765,
    "c": 0.12189,
    "h": 111.9
  },
  "luminance": 0.1977
}

Semantic roles & 50–950 ramp

primary
#7C8013
secondary
#3E39B5
accent
#37F13E
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8013

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

Preview Lab → · Contrast checker → · Palette generator →

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