#7E731D#7E731D

#7E731D is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.103 H 101.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7E731D
RGBrgb(126, 115, 29)
HSLhsl(53, 63%, 30%)
HSVhsv(53, 77%, 49%)
CMYKcmyk(0%, 8.7%, 77%, 50.6%)
CIE-LABlab(47.99, -5.87, 46.05)
CIE-LCHlch(47.99, 46.42, 97.27°)
OKLaboklab(54.96% -0.0211 0.1013)
OKLCHoklch(54.96% 0.103 101.8)
XYZxyz(14.9574, 16.7865, 3.6144)
Luminance0.1679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E731D #1D287E
analogous
#7E421D #7E731D #587E1D
triadic
#7E731D #1D7E73 #731D7E
tetradic
#7E731D #1D7E42 #1D287E #7E1D58
square
#7E731D #1D7E42 #1D287E #7E1D58
split-complementary
#7E731D #1D587E #421D7E
monochromatic
#1B1806 #4C4612 #7E731D #B0A028 #D3C342

Accessibility & contrast

On white

4.82
#7E731D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7E731D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E731D
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E731D#FFFFFF#000000##FFFFFF
##7E731D1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e731d;
/* rgb */ color: rgb(126, 115, 29);
/* oklch */ color: oklch(55.0% 0.103 101.8);
Tailwind
colors: {
  custom: {
    50: '#a79b60',
    500: '#7e731d',
    950: '#000000',
  },
}
SCSS
$custom: #7e731d;
$custom-light: #a79b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e731d",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 53.196,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54964,
    "c": 0.10346,
    "h": 101.8
  },
  "luminance": 0.16786
}

Semantic roles & 50–950 ramp

primary
#7E731D
secondary
#4552B1
accent
#55E642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E731D

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

Preview Lab → · Contrast checker → · Palette generator →

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