#7D731F#7D731F

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

Color values

HEX#7D731F
RGBrgb(125, 115, 31)
HSLhsl(54, 60%, 31%)
HSVhsv(54, 75%, 49%)
CMYKcmyk(0%, 8%, 75.2%, 51%)
CIE-LABlab(47.91, -6.25, 45.16)
CIE-LCHlch(47.91, 45.59, 97.87°)
OKLaboklab(54.88% -0.0219 0.0999)
OKLCHoklch(54.88% 0.102 102.3)
XYZxyz(14.8362, 16.7210, 3.7421)
Luminance0.1672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D731F #1F297D
analogous
#7D441F #7D731F #587D1F
triadic
#7D731F #1F7D73 #731F7D
tetradic
#7D731F #1F7D44 #1F297D #7D1F58
square
#7D731F #1F7D44 #1F297D #7D1F58
split-complementary
#7D731F #1F587D #441F7D
monochromatic
#1B1907 #4C4613 #7D731F #AEA02B #D1C245

Accessibility & contrast

On white

4.83
#7D731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D731F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D731F#FFFFFF#000000##FFFFFF
##7D731F1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F10
Deuteranopia (green-blind)
#817425
Tritanopia (blue-blind)
#876A63
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d731f;
/* rgb */ color: rgb(125, 115, 31);
/* oklch */ color: oklch(54.9% 0.102 102.3);
Tailwind
colors: {
  custom: {
    50: '#a69b61',
    500: '#7d731f',
    950: '#000000',
  },
}
SCSS
$custom: #7d731f;
$custom-light: #a69b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d731f",
  "rgb": {
    "r": 125,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 53.617,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54879,
    "c": 0.10221,
    "h": 102.3
  },
  "luminance": 0.1672
}

Semantic roles & 50–950 ramp

primary
#7D731F
secondary
#4853B0
accent
#55E344
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D731F

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

Preview Lab → · Contrast checker → · Palette generator →

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