#7D731D#7D731D

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

Color values

HEX#7D731D
RGBrgb(125, 115, 29)
HSLhsl(54, 62%, 30%)
HSVhsv(54, 77%, 49%)
CMYKcmyk(0%, 8%, 76.8%, 51%)
CIE-LABlab(47.89, -6.34, 45.93)
CIE-LCHlch(47.89, 46.36, 97.86°)
OKLaboklab(54.86% -0.0223 0.1011)
OKLCHoklch(54.86% 0.104 102.5)
XYZxyz(14.8106, 16.7108, 3.6075)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D731D #1D277D
analogous
#7D431D #7D731D #577D1D
triadic
#7D731D #1D7D73 #731D7D
tetradic
#7D731D #1D7D43 #1D277D #7D1D57
square
#7D731D #1D7D43 #1D277D #7D1D57
split-complementary
#7D731D #1D577D #431D7D
monochromatic
#1A1806 #4B4511 #7D731D #AFA129 #D3C441

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D731D#FFFFFF#000000##FFFFFF
##7D731D1.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)
#7E6F0D
Deuteranopia (green-blind)
#817423
Tritanopia (blue-blind)
#876A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d731d;
/* rgb */ color: rgb(125, 115, 29);
/* oklch */ color: oklch(54.9% 0.104 102.5);
Tailwind
colors: {
  custom: {
    50: '#a69b60',
    500: '#7d731d',
    950: '#000000',
  },
}
SCSS
$custom: #7d731d;
$custom-light: #a69b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d731d",
  "rgb": {
    "r": 125,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 53.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54864,
    "c": 0.10351,
    "h": 102.5
  },
  "luminance": 0.1671
}

Semantic roles & 50–950 ramp

primary
#7D731D
secondary
#4550B1
accent
#53E542
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D731D

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

Preview Lab → · Contrast checker → · Palette generator →

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