#7C7017#7C7017

#7C7017 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.104 H 101.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7C7017
RGBrgb(124, 112, 23)
HSLhsl(53, 69%, 29%)
HSVhsv(53, 81%, 49%)
CMYKcmyk(0%, 9.7%, 81.5%, 51.4%)
CIE-LABlab(46.89, -5.39, 47.13)
CIE-LCHlch(46.89, 47.44, 96.52°)
OKLaboklab(54.03% -0.0202 0.1024)
OKLCHoklch(54.03% 0.104 101.2)
XYZxyz(14.2617, 15.9360, 3.1352)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7017 #17237C
analogous
#7C3E17 #7C7017 #567C17
triadic
#7C7017 #177C70 #70177C
tetradic
#7C7017 #177C3E #17237C #7C1756
square
#7C7017 #177C3E #17237C #7C1756
split-complementary
#7C7017 #17567C #3E177C
monochromatic
#1A1705 #48410D #7C7017 #B09F21 #D9C634

Accessibility & contrast

On white

5.02
#7C7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7C7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7017
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7017#FFFFFF#000000##FFFFFF
##7C70171.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C01
Deuteranopia (green-blind)
#7F711E
Tritanopia (blue-blind)
#86675F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7c7017;
/* rgb */ color: rgb(124, 112, 23);
/* oklch */ color: oklch(54.0% 0.104 101.2);
Tailwind
colors: {
  custom: {
    50: '#a5985d',
    500: '#7c7017',
    950: '#000000',
  },
}
SCSS
$custom: #7c7017;
$custom-light: #a5985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7017",
  "rgb": {
    "r": 124,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 52.871,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54033,
    "c": 0.10441,
    "h": 101.2
  },
  "luminance": 0.15935
}

Semantic roles & 50–950 ramp

primary
#7C7017
secondary
#3E4CB1
accent
#51EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7C7017

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

Preview Lab → · Contrast checker → · Palette generator →

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