#7C731D#7C731D

#7C731D 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#7C731D
RGBrgb(124, 115, 29)
HSLhsl(54, 62%, 30%)
HSVhsv(54, 77%, 49%)
CMYKcmyk(0%, 7.3%, 76.6%, 51.4%)
CIE-LABlab(47.80, -6.81, 45.80)
CIE-LCHlch(47.80, 46.30, 98.46°)
OKLaboklab(54.77% -0.0236 0.1009)
OKLCHoklch(54.77% 0.104 103.2)
XYZxyz(14.6653, 16.6359, 3.6007)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C731D #1D267C
analogous
#7C441D #7C731D #557C1D
triadic
#7C731D #1D7C73 #731D7C
tetradic
#7C731D #1D7C44 #1D267C #7C1D55
square
#7C731D #1D7C44 #1D267C #7C1D55
split-complementary
#7C731D #1D557C #441D7C
monochromatic
#191706 #4A4511 #7C731D #AEA129 #D3C541

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C731D#FFFFFF#000000##FFFFFF
##7C731D1.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)
#7E6F0D
Deuteranopia (green-blind)
#817323
Tritanopia (blue-blind)
#866B62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c731d;
/* rgb */ color: rgb(124, 115, 29);
/* oklch */ color: oklch(54.8% 0.104 103.2);
Tailwind
colors: {
  custom: {
    50: '#a59b60',
    500: '#7c731d',
    950: '#000000',
  },
}
SCSS
$custom: #7c731d;
$custom-light: #a59b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c731d",
  "rgb": {
    "r": 124,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 54.316,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.54765,
    "c": 0.10358,
    "h": 103.2
  },
  "luminance": 0.16635
}

Semantic roles & 50–950 ramp

primary
#7C731D
secondary
#454FB0
accent
#52E543
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C731D

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

Preview Lab → · Contrast checker → · Palette generator →

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