#7F731D#7F731D

#7F731D is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 55.1% C 0.103 H 101.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7F731D
RGBrgb(127, 115, 29)
HSLhsl(53, 63%, 31%)
HSVhsv(53, 77%, 50%)
CMYKcmyk(0%, 9.4%, 77.2%, 50.2%)
CIE-LABlab(48.09, -5.40, 46.18)
CIE-LCHlch(48.09, 46.49, 96.67°)
OKLaboklab(55.06% -0.0198 0.1015)
OKLCHoklch(55.06% 0.103 101)
XYZxyz(15.1056, 16.8629, 3.6214)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F731D #1D297F
analogous
#7F421D #7F731D #5A7F1D
triadic
#7F731D #1D7F73 #731D7F
tetradic
#7F731D #1D7F42 #1D297F #7F1D5A
square
#7F731D #1D7F42 #1D297F #7F1D5A
split-complementary
#7F731D #1D5A7F #421D7F
monochromatic
#1B1906 #4D4612 #7F731D #B1A028 #D4C242

Accessibility & contrast

On white

4.80
#7F731D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7F731D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F731D
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F731D#FFFFFF#000000##FFFFFF
##7F731D1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0D
Deuteranopia (green-blind)
#827423
Tritanopia (blue-blind)
#896A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f731d;
/* rgb */ color: rgb(127, 115, 29);
/* oklch */ color: oklch(55.1% 0.103 101.0);
Tailwind
colors: {
  custom: {
    50: '#a79b60',
    500: '#7f731d',
    950: '#000000',
  },
}
SCSS
$custom: #7f731d;
$custom-light: #a79b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f731d",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 52.653,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55064,
    "c": 0.10343,
    "h": 101
  },
  "luminance": 0.16862
}

Semantic roles & 50–950 ramp

primary
#7F731D
secondary
#4553B2
accent
#56E642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F731D

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

Preview Lab → · Contrast checker → · Palette generator →

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