#7D731A#7D731A

#7D731A is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.8% C 0.105 H 102.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7D731A
RGBrgb(125, 115, 26)
HSLhsl(54, 66%, 30%)
HSVhsv(54, 79%, 49%)
CMYKcmyk(0%, 8%, 79.2%, 51%)
CIE-LABlab(47.88, -6.48, 47.02)
CIE-LCHlch(47.88, 47.46, 97.85°)
OKLaboklab(54.84% -0.023 0.1028)
OKLCHoklch(54.84% 0.105 102.6)
XYZxyz(14.7753, 16.6967, 3.4216)
Luminance0.1670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D731A #1A247D
analogous
#7D411A #7D731A #567D1A
triadic
#7D731A #1A7D73 #731A7D
tetradic
#7D731A #1A7D41 #1A247D #7D1A56
square
#7D731A #1A7D41 #1A247D #7D1A56
split-complementary
#7D731A #1A567D #411A7D
monochromatic
#191705 #4A440F #7D731A #B0A225 #D6C73B

Accessibility & contrast

On white

4.84
#7D731A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7D731A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D731A
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D731A#FFFFFF#000000##FFFFFF
##7D731A1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F06
Deuteranopia (green-blind)
#817421
Tritanopia (blue-blind)
#876A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d731a;
/* rgb */ color: rgb(125, 115, 26);
/* oklch */ color: oklch(54.8% 0.105 102.6);
Tailwind
colors: {
  custom: {
    50: '#a69b5f',
    500: '#7d731a',
    950: '#000000',
  },
}
SCSS
$custom: #7d731a;
$custom-light: #a69b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d731a",
  "rgb": {
    "r": 125,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 53.939,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54844,
    "c": 0.10533,
    "h": 102.6
  },
  "luminance": 0.16696
}

Semantic roles & 50–950 ramp

primary
#7D731A
secondary
#424DB1
accent
#50E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D731A

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

Preview Lab → · Contrast checker → · Palette generator →

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