#7C731A#7C731A

#7C731A is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.105 H 103.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7C731A
RGBrgb(124, 115, 26)
HSLhsl(54, 65%, 29%)
HSVhsv(54, 79%, 49%)
CMYKcmyk(0%, 7.3%, 79%, 51.4%)
CIE-LABlab(47.78, -6.95, 46.89)
CIE-LCHlch(47.78, 47.41, 98.43°)
OKLaboklab(54.75% -0.0243 0.1026)
OKLCHoklch(54.75% 0.105 103.3)
XYZxyz(14.6300, 16.6218, 3.4148)
Luminance0.1662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C731A #1A237C
analogous
#7C421A #7C731A #547C1A
triadic
#7C731A #1A7C73 #731A7C
tetradic
#7C731A #1A7C42 #1A237C #7C1A54
square
#7C731A #1A7C42 #1A237C #7C1A54
split-complementary
#7C731A #1A547C #421A7C
monochromatic
#191705 #49440F #7C731A #AFA225 #D6C83B

Accessibility & contrast

On white

4.86
#7C731A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7C731A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C731A
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C731A#FFFFFF#000000##FFFFFF
##7C731A1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c731a;
/* rgb */ color: rgb(124, 115, 26);
/* oklch */ color: oklch(54.7% 0.105 103.3);
Tailwind
colors: {
  custom: {
    50: '#a59b5f',
    500: '#7c731a',
    950: '#000000',
  },
}
SCSS
$custom: #7c731a;
$custom-light: #a59b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c731a",
  "rgb": {
    "r": 124,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 54.49,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54745,
    "c": 0.1054,
    "h": 103.3
  },
  "luminance": 0.16621
}

Semantic roles & 50–950 ramp

primary
#7C731A
secondary
#424CB0
accent
#4FE840
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C731A

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

Preview Lab → · Contrast checker → · Palette generator →

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