#7D731B#7D731B

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

Color values

HEX#7D731B
RGBrgb(125, 115, 27)
HSLhsl(54, 64%, 30%)
HSVhsv(54, 78%, 49%)
CMYKcmyk(0%, 8%, 78.4%, 51%)
CIE-LABlab(47.88, -6.44, 46.66)
CIE-LCHlch(47.88, 47.10, 97.85°)
OKLaboklab(54.85% -0.0228 0.1022)
OKLCHoklch(54.85% 0.105 102.6)
XYZxyz(14.7867, 16.7012, 3.4815)
Luminance0.1670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D731B #1B257D
analogous
#7D421B #7D731B #567D1B
triadic
#7D731B #1B7D73 #731B7D
tetradic
#7D731B #1B7D42 #1B257D #7D1B56
square
#7D731B #1B7D42 #1B257D #7D1B56
split-complementary
#7D731B #1B567D #421B7D
monochromatic
#191705 #4B4510 #7D731B #AFA126 #D5C63D

Accessibility & contrast

On white

4.84
#7D731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7D731B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D731B
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D731B#FFFFFF#000000##FFFFFF
##7D731B1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F08
Deuteranopia (green-blind)
#817421
Tritanopia (blue-blind)
#876A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d731b;
/* rgb */ color: rgb(125, 115, 27);
/* oklch */ color: oklch(54.9% 0.105 102.6);
Tailwind
colors: {
  custom: {
    50: '#a69b5f',
    500: '#7d731b',
    950: '#000000',
  },
}
SCSS
$custom: #7d731b;
$custom-light: #a69b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d731b",
  "rgb": {
    "r": 125,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 53.878,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54851,
    "c": 0.10474,
    "h": 102.6
  },
  "luminance": 0.16701
}

Semantic roles & 50–950 ramp

primary
#7D731B
secondary
#434EB1
accent
#51E740
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D731B

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

Preview Lab → · Contrast checker → · Palette generator →

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