#7C7217#7C7217

#7C7217 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.5% C 0.106 H 102.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7C7217
RGBrgb(124, 114, 23)
HSLhsl(54, 69%, 29%)
HSVhsv(54, 81%, 49%)
CMYKcmyk(0%, 8.1%, 81.5%, 51.4%)
CIE-LABlab(47.47, -6.51, 47.65)
CIE-LCHlch(47.47, 48.10, 97.78°)
OKLaboklab(54.5% -0.0234 0.1036)
OKLCHoklch(54.5% 0.106 102.7)
XYZxyz(14.4848, 16.3822, 3.2096)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7217 #17217C
analogous
#7C4017 #7C7217 #547C17
triadic
#7C7217 #177C72 #72177C
tetradic
#7C7217 #177C40 #17217C #7C1754
square
#7C7217 #177C40 #17217C #7C1754
split-complementary
#7C7217 #17547C #40177C
monochromatic
#1A1805 #48430D #7C7217 #B0A121 #D9C934

Accessibility & contrast

On white

4.91
#7C7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7C7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7217
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7217#FFFFFF#000000##FFFFFF
##7C72171.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#80731E
Tritanopia (blue-blind)
#866961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c7217;
/* rgb */ color: rgb(124, 114, 23);
/* oklch */ color: oklch(54.5% 0.106 102.7);
Tailwind
colors: {
  custom: {
    50: '#a59a5d',
    500: '#7c7217',
    950: '#000000',
  },
}
SCSS
$custom: #7c7217;
$custom-light: #a59a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7217",
  "rgb": {
    "r": 124,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 54.059,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54495,
    "c": 0.10616,
    "h": 102.7
  },
  "luminance": 0.16382
}

Semantic roles & 50–950 ramp

primary
#7C7217
secondary
#3E49B1
accent
#4EEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7217

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

Preview Lab → · Contrast checker → · Palette generator →

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