#7B731A#7B731A

#7B731A is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.6% C 0.105 H 104.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7B731A
RGBrgb(123, 115, 26)
HSLhsl(55, 65%, 29%)
HSVhsv(55, 79%, 48%)
CMYKcmyk(0%, 6.5%, 78.9%, 51.8%)
CIE-LABlab(47.68, -7.42, 46.77)
CIE-LCHlch(47.68, 47.36, 99.02°)
OKLaboklab(54.65% -0.0256 0.1023)
OKLCHoklch(54.65% 0.105 104)
XYZxyz(14.4862, 16.5476, 3.4080)
Luminance0.1655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B731A #1A227B
analogous
#7B431A #7B731A #537B1A
triadic
#7B731A #1A7B73 #731A7B
tetradic
#7B731A #1A7B43 #1A227B #7B1A53
square
#7B731A #1A7B43 #1A227B #7B1A53
split-complementary
#7B731A #1A537B #431A7B
monochromatic
#191805 #48440F #7B731A #AEA225 #D5C93A

Accessibility & contrast

On white

4.87
#7B731A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7B731A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B731A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B731A#FFFFFF#000000##FFFFFF
##7B731A1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F06
Deuteranopia (green-blind)
#817321
Tritanopia (blue-blind)
#856A62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b731a;
/* rgb */ color: rgb(123, 115, 26);
/* oklch */ color: oklch(54.6% 0.105 104.0);
Tailwind
colors: {
  custom: {
    50: '#a49b5f',
    500: '#7b731a',
    950: '#000000',
  },
}
SCSS
$custom: #7b731a;
$custom-light: #a49b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b731a",
  "rgb": {
    "r": 123,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 55.052,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54647,
    "c": 0.10549,
    "h": 104
  },
  "luminance": 0.16547
}

Semantic roles & 50–950 ramp

primary
#7B731A
secondary
#424BAF
accent
#4EE840
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B731A

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

Preview Lab → · Contrast checker → · Palette generator →

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