#7C7C16#7C7C16

#7C7C16 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.116 H 109.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7C7C16
RGBrgb(124, 124, 22)
HSLhsl(60, 70%, 29%)
HSVhsv(60, 82%, 49%)
CMYKcmyk(0%, 0%, 82.3%, 51.4%)
CIE-LABlab(50.40, -12.08, 50.57)
CIE-LCHlch(50.40, 51.99, 103.44°)
OKLaboklab(56.83% -0.039 0.1096)
OKLCHoklch(56.83% 0.116 109.6)
XYZxyz(15.6653, 18.7588, 3.5545)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7C16 #16167C
analogous
#7C4916 #7C7C16 #497C16
triadic
#7C7C16 #167C7C #7C167C
tetradic
#7C7C16 #167C49 #16167C #7C1649
square
#7C7C16 #167C49 #16167C #7C1649
split-complementary
#7C7C16 #16497C #49167C
monochromatic
#1A1A05 #48480D #7C7C16 #B0B01F #DBDB32

Accessibility & contrast

On white

4.42
#7C7C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7C7C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7C16
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7C16#FFFFFF#000000##000000
##7C7C161.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#88791F
Tritanopia (blue-blind)
#85736A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7c7c16;
/* rgb */ color: rgb(124, 124, 22);
/* oklch */ color: oklch(56.8% 0.116 109.6);
Tailwind
colors: {
  custom: {
    50: '#a5a15e',
    500: '#7c7c16',
    950: '#000000',
  },
}
SCSS
$custom: #7c7c16;
$custom-light: #a5a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7c16",
  "rgb": {
    "r": 124,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 60,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56831,
    "c": 0.11636,
    "h": 109.6
  },
  "luminance": 0.18758
}

Semantic roles & 50–950 ramp

primary
#7C7C16
secondary
#3D3DB1
accent
#3BED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7C16

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

Preview Lab → · Contrast checker → · Palette generator →

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