#7F731F#7F731F

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

Color values

HEX#7F731F
RGBrgb(127, 115, 31)
HSLhsl(53, 61%, 31%)
HSVhsv(53, 76%, 50%)
CMYKcmyk(0%, 9.4%, 75.6%, 50.2%)
CIE-LABlab(48.10, -5.31, 45.41)
CIE-LCHlch(48.10, 45.72, 96.66°)
OKLaboklab(55.08% -0.0193 0.1003)
OKLCHoklch(55.08% 0.102 100.9)
XYZxyz(15.1312, 16.8731, 3.7559)
Luminance0.1687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F731F #1F2B7F
analogous
#7F431F #7F731F #5B7F1F
triadic
#7F731F #1F7F73 #731F7F
tetradic
#7F731F #1F7F43 #1F2B7F #7F1F5B
square
#7F731F #1F7F43 #1F2B7F #7F1F5B
split-complementary
#7F731F #1F5B7F #431F7F
monochromatic
#1D1A07 #4E4613 #7F731F #B0A02B #D2C146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F731F#FFFFFF#000000##FFFFFF
##7F731F1.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)
#7E6F10
Deuteranopia (green-blind)
#827425
Tritanopia (blue-blind)
#896A63
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f731f;
/* rgb */ color: rgb(127, 115, 31);
/* oklch */ color: oklch(55.1% 0.102 100.9);
Tailwind
colors: {
  custom: {
    50: '#a79b61',
    500: '#7f731f',
    950: '#000000',
  },
}
SCSS
$custom: #7f731f;
$custom-light: #a79b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f731f",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 52.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55078,
    "c": 0.10214,
    "h": 100.9
  },
  "luminance": 0.16872
}

Semantic roles & 50–950 ramp

primary
#7F731F
secondary
#4855B2
accent
#58E444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F731F

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

Preview Lab → · Contrast checker → · Palette generator →

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