#7A731B#7A731B

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

Color values

HEX#7A731B
RGBrgb(122, 115, 27)
HSLhsl(56, 64%, 29%)
HSVhsv(56, 78%, 48%)
CMYKcmyk(0%, 5.7%, 77.9%, 52.2%)
CIE-LABlab(47.60, -7.85, 46.29)
CIE-LCHlch(47.60, 46.95, 99.62°)
OKLaboklab(54.56% -0.0266 0.1016)
OKLCHoklch(54.56% 0.105 104.7)
XYZxyz(14.3552, 16.4787, 3.4613)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A731B #1B227A
analogous
#7A441B #7A731B #527A1B
triadic
#7A731B #1B7A73 #731B7A
tetradic
#7A731B #1B7A44 #1B227A #7A1B52
square
#7A731B #1B7A44 #1B227A #7A1B52
split-complementary
#7A731B #1B527A #441B7A
monochromatic
#191806 #484410 #7A731B #ACA226 #D4C93C

Accessibility & contrast

On white

4.89
#7A731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7A731B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A731B
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A731B#FFFFFF#000000##FFFFFF
##7A731B1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F08
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#846B62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a731b;
/* rgb */ color: rgb(122, 115, 27);
/* oklch */ color: oklch(54.6% 0.105 104.7);
Tailwind
colors: {
  custom: {
    50: '#a49b5f',
    500: '#7a731b',
    950: '#000000',
  },
}
SCSS
$custom: #7a731b;
$custom-light: #a49b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a731b",
  "rgb": {
    "r": 122,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 55.579,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54556,
    "c": 0.105,
    "h": 104.7
  },
  "luminance": 0.16478
}

Semantic roles & 50–950 ramp

primary
#7A731B
secondary
#434BAE
accent
#4DE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A731B

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

Preview Lab → · Contrast checker → · Palette generator →

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