#7E731E#7E731E

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

Color values

HEX#7E731E
RGBrgb(126, 115, 30)
HSLhsl(53, 62%, 31%)
HSVhsv(53, 76%, 49%)
CMYKcmyk(0%, 8.7%, 76.2%, 50.6%)
CIE-LABlab(48.00, -5.83, 45.67)
CIE-LCHlch(48.00, 46.04, 97.27°)
OKLaboklab(54.97% -0.0208 0.1007)
OKLCHoklch(54.97% 0.103 101.7)
XYZxyz(14.9699, 16.7915, 3.6806)
Luminance0.1679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E731E #1E297E
analogous
#7E431E #7E731E #597E1E
triadic
#7E731E #1E7E73 #731E7E
tetradic
#7E731E #1E7E43 #1E297E #7E1E59
square
#7E731E #1E7E43 #1E297E #7E1E59
split-complementary
#7E731E #1E597E #431E7E
monochromatic
#1B1906 #4D4612 #7E731E #AFA02A #D2C244

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E731E#FFFFFF#000000##FFFFFF
##7E731E1.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)
#7E6F0F
Deuteranopia (green-blind)
#817424
Tritanopia (blue-blind)
#886A63
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e731e;
/* rgb */ color: rgb(126, 115, 30);
/* oklch */ color: oklch(55.0% 0.103 101.7);
Tailwind
colors: {
  custom: {
    50: '#a79b61',
    500: '#7e731e',
    950: '#000000',
  },
}
SCSS
$custom: #7e731e;
$custom-light: #a79b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e731e",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 30
  },
  "hsl": {
    "h": 53.125,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54971,
    "c": 0.10282,
    "h": 101.7
  },
  "luminance": 0.16791
}

Semantic roles & 50–950 ramp

primary
#7E731E
secondary
#4753B1
accent
#56E543
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E731E

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

Preview Lab → · Contrast checker → · Palette generator →

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