#7C8012#7C8012

#7C8012 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#7C8012
RGBrgb(124, 128, 18)
HSLhsl(62, 75%, 29%)
HSVhsv(62, 86%, 50%)
CMYKcmyk(3.1%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.57, -14.38, 52.69)
CIE-LCHlch(51.57, 54.62, 105.26°)
OKLaboklab(57.76% -0.0457 0.1134)
OKLCHoklch(57.76% 0.122 111.9)
XYZxyz(16.1411, 19.7675, 3.5374)
Luminance0.1977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8012 #161280
analogous
#804D12 #7C8012 #458012
triadic
#7C8012 #127C80 #80127C
tetradic
#7C8012 #12804D #161280 #801245
square
#7C8012 #12804D #161280 #801245
split-complementary
#7C8012 #124580 #4D1280
monochromatic
#1A1B04 #484A0A #7C8012 #B0B61A #DBE12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8012#FFFFFF#000000##000000
##7C80121.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: #7c8012;
/* rgb */ color: rgb(124, 128, 18);
/* oklch */ color: oklch(57.8% 0.122 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a45d',
    500: '#7c8012',
    950: '#000000',
  },
}
SCSS
$custom: #7c8012;
$custom-light: #a5a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8012",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 62.182,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57761,
    "c": 0.12229,
    "h": 111.9
  },
  "luminance": 0.19767
}

Semantic roles & 50–950 ramp

primary
#7C8012
secondary
#3D38B6
accent
#36F23D
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8012

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

Preview Lab → · Contrast checker → · Palette generator →

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