#7C8112#7C8112

#7C8112 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.123 H 112.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7C8112
RGBrgb(124, 129, 18)
HSLhsl(63, 76%, 29%)
HSVhsv(63, 86%, 51%)
CMYKcmyk(3.9%, 0%, 86%, 49.4%)
CIE-LABlab(51.87, -14.91, 52.94)
CIE-LCHlch(51.87, 55.00, 105.73°)
OKLaboklab(58% -0.0471 0.114)
OKLCHoklch(58% 0.123 112.5)
XYZxyz(16.2722, 20.0297, 3.5811)
Luminance0.2003 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8112 #171281
analogous
#814F12 #7C8112 #458112
triadic
#7C8112 #127C81 #81127C
tetradic
#7C8112 #12814F #171281 #811245
square
#7C8112 #12814F #171281 #811245
split-complementary
#7C8112 #124581 #4F1281
monochromatic
#1A1B04 #484B0B #7C8112 #B0B719 #D9E22C

Accessibility & contrast

On white

4.20
#7C8112 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7C8112 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8112
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8112#FFFFFF#000000##000000
##7C81121.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7A00
Deuteranopia (green-blind)
#8C7D1E
Tritanopia (blue-blind)
#85786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8112;
/* rgb */ color: rgb(124, 129, 18);
/* oklch */ color: oklch(58.0% 0.123 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a55d',
    500: '#7c8112',
    950: '#000000',
  },
}
SCSS
$custom: #7c8112;
$custom-light: #a5a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8112",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 62.703,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57999,
    "c": 0.12335,
    "h": 112.5
  },
  "luminance": 0.20029
}

Semantic roles & 50–950 ramp

primary
#7C8112
secondary
#3E38B7
accent
#36F23E
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8112

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

Preview Lab → · Contrast checker → · Palette generator →

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