#7C731C#7C731C

#7C731C is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.104 H 103.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7C731C
RGBrgb(124, 115, 28)
HSLhsl(54, 63%, 30%)
HSVhsv(54, 77%, 49%)
CMYKcmyk(0%, 7.3%, 77.4%, 51.4%)
CIE-LABlab(47.79, -6.86, 46.17)
CIE-LCHlch(47.79, 46.68, 98.45°)
OKLaboklab(54.76% -0.0239 0.1014)
OKLCHoklch(54.76% 0.104 103.2)
XYZxyz(14.6532, 16.6310, 3.5366)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C731C #1C257C
analogous
#7C431C #7C731C #557C1C
triadic
#7C731C #1C7C73 #731C7C
tetradic
#7C731C #1C7C43 #1C257C #7C1C55
square
#7C731C #1C7C43 #1C257C #7C1C55
split-complementary
#7C731C #1C557C #431C7C
monochromatic
#191706 #4A4511 #7C731C #AEA127 #D4C63F

Accessibility & contrast

On white

4.85
#7C731C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7C731C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C731C
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C731C#FFFFFF#000000##FFFFFF
##7C731C1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0A
Deuteranopia (green-blind)
#817322
Tritanopia (blue-blind)
#866A62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c731c;
/* rgb */ color: rgb(124, 115, 28);
/* oklch */ color: oklch(54.8% 0.104 103.2);
Tailwind
colors: {
  custom: {
    50: '#a59b60',
    500: '#7c731c',
    950: '#000000',
  },
}
SCSS
$custom: #7c731c;
$custom-light: #a59b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c731c",
  "rgb": {
    "r": 124,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 54.375,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54758,
    "c": 0.1042,
    "h": 103.2
  },
  "luminance": 0.1663
}

Semantic roles & 50–950 ramp

primary
#7C731C
secondary
#444EB0
accent
#51E642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C731C

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

Preview Lab → · Contrast checker → · Palette generator →

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