#7E731C#7E731C

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

Color values

HEX#7E731C
RGBrgb(126, 115, 28)
HSLhsl(53, 64%, 30%)
HSVhsv(53, 78%, 49%)
CMYKcmyk(0%, 8.7%, 77.8%, 50.6%)
CIE-LABlab(47.98, -5.92, 46.42)
CIE-LCHlch(47.98, 46.80, 97.27°)
OKLaboklab(54.96% -0.0213 0.1019)
OKLCHoklch(54.96% 0.104 101.8)
XYZxyz(14.9452, 16.7816, 3.5503)
Luminance0.1678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E731C #1C277E
analogous
#7E421C #7E731C #587E1C
triadic
#7E731C #1C7E73 #731C7E
tetradic
#7E731C #1C7E42 #1C277E #7E1C58
square
#7E731C #1C7E42 #1C277E #7E1C58
split-complementary
#7E731C #1C587E #421C7E
monochromatic
#1A1806 #4C4511 #7E731C #B0A127 #D5C440

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E731C#FFFFFF#000000##FFFFFF
##7E731C1.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)
#7E6F0A
Deuteranopia (green-blind)
#827422
Tritanopia (blue-blind)
#886A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e731c;
/* rgb */ color: rgb(126, 115, 28);
/* oklch */ color: oklch(55.0% 0.104 101.8);
Tailwind
colors: {
  custom: {
    50: '#a79b60',
    500: '#7e731c',
    950: '#000000',
  },
}
SCSS
$custom: #7e731c;
$custom-light: #a79b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e731c",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 53.265,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54957,
    "c": 0.10409,
    "h": 101.8
  },
  "luminance": 0.16781
}

Semantic roles & 50–950 ramp

primary
#7E731C
secondary
#4450B2
accent
#54E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E731C

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

Preview Lab → · Contrast checker → · Palette generator →

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