#7E731B#7E731B

#7E731B 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#7E731B
RGBrgb(126, 115, 27)
HSLhsl(53, 65%, 30%)
HSVhsv(53, 79%, 49%)
CMYKcmyk(0%, 8.7%, 78.6%, 50.6%)
CIE-LABlab(47.98, -5.96, 46.79)
CIE-LCHlch(47.98, 47.16, 97.27°)
OKLaboklab(54.95% -0.0215 0.1024)
OKLCHoklch(54.95% 0.105 101.9)
XYZxyz(14.9334, 16.7769, 3.4884)
Luminance0.1678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E731B #1B267E
analogous
#7E411B #7E731B #587E1B
triadic
#7E731B #1B7E73 #731B7E
tetradic
#7E731B #1B7E41 #1B267E #7E1B58
square
#7E731B #1B7E41 #1B267E #7E1B58
split-complementary
#7E731B #1B587E #411B7E
monochromatic
#191705 #4C4510 #7E731B #B0A126 #D6C53E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E731B#FFFFFF#000000##FFFFFF
##7E731B1.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)
#7E6F08
Deuteranopia (green-blind)
#827421
Tritanopia (blue-blind)
#886A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e731b;
/* rgb */ color: rgb(126, 115, 27);
/* oklch */ color: oklch(54.9% 0.105 101.9);
Tailwind
colors: {
  custom: {
    50: '#a79b5f',
    500: '#7e731b',
    950: '#000000',
  },
}
SCSS
$custom: #7e731b;
$custom-light: #a79b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e731b",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 53.333,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.5495,
    "c": 0.10468,
    "h": 101.9
  },
  "luminance": 0.16776
}

Semantic roles & 50–950 ramp

primary
#7E731B
secondary
#434FB2
accent
#53E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E731B

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

Preview Lab → · Contrast checker → · Palette generator →

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