#7E731A#7E731A

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

Color values

HEX#7E731A
RGBrgb(126, 115, 26)
HSLhsl(53, 66%, 30%)
HSVhsv(53, 79%, 49%)
CMYKcmyk(0%, 8.7%, 79.4%, 50.6%)
CIE-LABlab(47.97, -6.01, 47.14)
CIE-LCHlch(47.97, 47.52, 97.26°)
OKLaboklab(54.94% -0.0218 0.103)
OKLCHoklch(54.94% 0.105 101.9)
XYZxyz(14.9221, 16.7723, 3.4285)
Luminance0.1677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E731A #1A257E
analogous
#7E411A #7E731A #577E1A
triadic
#7E731A #1A7E73 #731A7E
tetradic
#7E731A #1A7E41 #1A257E #7E1A57
square
#7E731A #1A7E41 #1A257E #7E1A57
split-complementary
#7E731A #1A577E #411A7E
monochromatic
#191705 #4B4510 #7E731A #B1A124 #D7C63C

Accessibility & contrast

On white

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

On black

4.35
#7E731A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E731A#FFFFFF#000000##FFFFFF
##7E731A1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e731a;
/* rgb */ color: rgb(126, 115, 26);
/* oklch */ color: oklch(54.9% 0.105 101.9);
Tailwind
colors: {
  custom: {
    50: '#a79b5f',
    500: '#7e731a',
    950: '#000000',
  },
}
SCSS
$custom: #7e731a;
$custom-light: #a79b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e731a",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 53.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54944,
    "c": 0.10527,
    "h": 101.9
  },
  "luminance": 0.16772
}

Semantic roles & 50–950 ramp

primary
#7E731A
secondary
#424EB2
accent
#52E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E731A

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

Preview Lab → · Contrast checker → · Palette generator →

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