#7F731E#7F731E

#7F731E 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#7F731E
RGBrgb(127, 115, 30)
HSLhsl(53, 62%, 31%)
HSVhsv(53, 76%, 50%)
CMYKcmyk(0%, 9.4%, 76.4%, 50.2%)
CIE-LABlab(48.09, -5.35, 45.80)
CIE-LCHlch(48.09, 46.11, 96.67°)
OKLaboklab(55.07% -0.0196 0.1009)
OKLCHoklch(55.07% 0.103 101)
XYZxyz(15.1182, 16.8679, 3.6875)
Luminance0.1687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F731E #1E2A7F
analogous
#7F421E #7F731E #5A7F1E
triadic
#7F731E #1E7F73 #731E7F
tetradic
#7F731E #1E7F42 #1E2A7F #7F1E5A
square
#7F731E #1E7F42 #1E2A7F #7F1E5A
split-complementary
#7F731E #1E5A7F #421E7F
monochromatic
#1C1907 #4D4612 #7F731E #B1A02A #D3C144

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F731E#FFFFFF#000000##FFFFFF
##7F731E1.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)
#7E6F0F
Deuteranopia (green-blind)
#827424
Tritanopia (blue-blind)
#896A63
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f731e;
/* rgb */ color: rgb(127, 115, 30);
/* oklch */ color: oklch(55.1% 0.103 101.0);
Tailwind
colors: {
  custom: {
    50: '#a79b61',
    500: '#7f731e',
    950: '#000000',
  },
}
SCSS
$custom: #7f731e;
$custom-light: #a79b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f731e",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 30
  },
  "hsl": {
    "h": 52.577,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55071,
    "c": 0.1028,
    "h": 101
  },
  "luminance": 0.16867
}

Semantic roles & 50–950 ramp

primary
#7F731E
secondary
#4754B2
accent
#57E543
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F731E

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

Preview Lab → · Contrast checker → · Palette generator →

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