#7C6917#7C6917

#7C6917 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.4% C 0.099 H 95.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7C6917
RGBrgb(124, 105, 23)
HSLhsl(49, 69%, 29%)
HSVhsv(49, 81%, 49%)
CMYKcmyk(0%, 15.3%, 81.5%, 51.4%)
CIE-LABlab(44.87, -1.38, 45.31)
CIE-LCHlch(44.87, 45.33, 91.75°)
OKLaboklab(52.43% -0.0089 0.0985)
OKLCHoklch(52.43% 0.099 95.2)
XYZxyz(13.5192, 14.4509, 2.8877)
Luminance0.1445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C6917 #172A7C
analogous
#7C3717 #7C6917 #5D7C17
triadic
#7C6917 #177C69 #69177C
tetradic
#7C6917 #177C37 #172A7C #7C175D
square
#7C6917 #177C37 #172A7C #7C175D
split-complementary
#7C6917 #175D7C #37177C
monochromatic
#1A1605 #483D0D #7C6917 #B09521 #D9BA34

Accessibility & contrast

On white

5.40
#7C6917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7C6917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C6917
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C6917#FFFFFF#000000##FFFFFF
##7C69171.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#87605A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7c6917;
/* rgb */ color: rgb(124, 105, 23);
/* oklch */ color: oklch(52.4% 0.099 95.2);
Tailwind
colors: {
  custom: {
    50: '#a6935c',
    500: '#7c6917',
    950: '#000000',
  },
}
SCSS
$custom: #7c6917;
$custom-light: #a6935c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c6917",
  "rgb": {
    "r": 124,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 48.713,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52434,
    "c": 0.09893,
    "h": 95.2
  },
  "luminance": 0.1445
}

Semantic roles & 50–950 ramp

primary
#7C6917
secondary
#3E54B1
accent
#5DEC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7C6917

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

Preview Lab → · Contrast checker → · Palette generator →

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