#7C7218#7C7218

#7C7218 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#7C7218
RGBrgb(124, 114, 24)
HSLhsl(54, 68%, 29%)
HSVhsv(54, 81%, 49%)
CMYKcmyk(0%, 8.1%, 80.6%, 51.4%)
CIE-LABlab(47.48, -6.47, 47.32)
CIE-LCHlch(47.48, 47.76, 97.79°)
OKLaboklab(54.5% -0.0232 0.1031)
OKLCHoklch(54.5% 0.106 102.7)
XYZxyz(14.4950, 16.3863, 3.2633)
Luminance0.1639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7218 #18227C
analogous
#7C4018 #7C7218 #547C18
triadic
#7C7218 #187C72 #72187C
tetradic
#7C7218 #187C40 #18227C #7C1854
square
#7C7218 #187C40 #18227C #7C1854
split-complementary
#7C7218 #18547C #40187C
monochromatic
#1A1805 #49430E #7C7218 #AFA122 #D8C836

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C7218#FFFFFF#000000##FFFFFF
##7C72181.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)
#7D6E02
Deuteranopia (green-blind)
#80731F
Tritanopia (blue-blind)
#866961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c7218;
/* rgb */ color: rgb(124, 114, 24);
/* oklch */ color: oklch(54.5% 0.106 102.7);
Tailwind
colors: {
  custom: {
    50: '#a59a5d',
    500: '#7c7218',
    950: '#000000',
  },
}
SCSS
$custom: #7c7218;
$custom-light: #a59a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7218",
  "rgb": {
    "r": 124,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 54,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54501,
    "c": 0.10562,
    "h": 102.7
  },
  "luminance": 0.16386
}

Semantic roles & 50–950 ramp

primary
#7C7218
secondary
#3F4BB1
accent
#4FEA3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7218

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

Preview Lab → · Contrast checker → · Palette generator →

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