#7E731F#7E731F

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

Color values

HEX#7E731F
RGBrgb(126, 115, 31)
HSLhsl(53, 61%, 31%)
HSVhsv(53, 75%, 49%)
CMYKcmyk(0%, 8.7%, 75.4%, 50.6%)
CIE-LABlab(48.00, -5.78, 45.29)
CIE-LCHlch(48.00, 45.65, 97.27°)
OKLaboklab(54.98% -0.0206 0.1001)
OKLCHoklch(54.98% 0.102 101.6)
XYZxyz(14.9829, 16.7967, 3.7489)
Luminance0.1680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E731F #1F2A7E
analogous
#7E431F #7E731F #597E1F
triadic
#7E731F #1F7E73 #731F7E
tetradic
#7E731F #1F7E43 #1F2A7E #7E1F59
square
#7E731F #1F7E43 #1F2A7E #7E1F59
split-complementary
#7E731F #1F597E #431F7E
monochromatic
#1C1907 #4D4613 #7E731F #AFA02B #D1C146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E731F#FFFFFF#000000##FFFFFF
##7E731F1.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)
#7E6F10
Deuteranopia (green-blind)
#817425
Tritanopia (blue-blind)
#886A63
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e731f;
/* rgb */ color: rgb(126, 115, 31);
/* oklch */ color: oklch(55.0% 0.102 101.6);
Tailwind
colors: {
  custom: {
    50: '#a79b61',
    500: '#7e731f',
    950: '#000000',
  },
}
SCSS
$custom: #7e731f;
$custom-light: #a79b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e731f",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 53.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54978,
    "c": 0.10218,
    "h": 101.6
  },
  "luminance": 0.16796
}

Semantic roles & 50–950 ramp

primary
#7E731F
secondary
#4854B1
accent
#57E444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E731F

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

Preview Lab → · Contrast checker → · Palette generator →

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