#7D731C#7D731C

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

Color values

HEX#7D731C
RGBrgb(125, 115, 28)
HSLhsl(54, 63%, 30%)
HSVhsv(54, 78%, 49%)
CMYKcmyk(0%, 8%, 77.6%, 51%)
CIE-LABlab(47.89, -6.39, 46.30)
CIE-LCHlch(47.89, 46.74, 97.86°)
OKLaboklab(54.86% -0.0226 0.1017)
OKLCHoklch(54.86% 0.104 102.5)
XYZxyz(14.7985, 16.7059, 3.5435)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D731C #1C267D
analogous
#7D421C #7D731C #577D1C
triadic
#7D731C #1C7D73 #731C7D
tetradic
#7D731C #1C7D42 #1C267D #7D1C57
square
#7D731C #1C7D42 #1C267D #7D1C57
split-complementary
#7D731C #1C577D #421C7D
monochromatic
#191706 #4B4511 #7D731C #AFA127 #D4C53F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D731C#FFFFFF#000000##FFFFFF
##7D731C1.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)
#7E6F0A
Deuteranopia (green-blind)
#817422
Tritanopia (blue-blind)
#876A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d731c;
/* rgb */ color: rgb(125, 115, 28);
/* oklch */ color: oklch(54.9% 0.104 102.5);
Tailwind
colors: {
  custom: {
    50: '#a69b60',
    500: '#7d731c',
    950: '#000000',
  },
}
SCSS
$custom: #7d731c;
$custom-light: #a69b60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d731c",
  "rgb": {
    "r": 125,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 53.814,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.54857,
    "c": 0.10414,
    "h": 102.5
  },
  "luminance": 0.16705
}

Semantic roles & 50–950 ramp

primary
#7D731C
secondary
#444FB1
accent
#52E641
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D731C

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

Preview Lab → · Contrast checker → · Palette generator →

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