#7A731C#7A731C

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

Color values

HEX#7A731C
RGBrgb(122, 115, 28)
HSLhsl(56, 63%, 29%)
HSVhsv(56, 77%, 48%)
CMYKcmyk(0%, 5.7%, 77%, 52.2%)
CIE-LABlab(47.60, -7.80, 45.93)
CIE-LCHlch(47.60, 46.59, 99.64°)
OKLaboklab(54.56% -0.0264 0.101)
OKLCHoklch(54.56% 0.104 104.6)
XYZxyz(14.3670, 16.4835, 3.5232)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A731C #1C237A
analogous
#7A441C #7A731C #527A1C
triadic
#7A731C #1C7A73 #731C7A
tetradic
#7A731C #1C7A44 #1C237A #7A1C52
square
#7A731C #1C7A44 #1C237A #7A1C52
split-complementary
#7A731C #1C527A #441C7A
monochromatic
#191706 #484411 #7A731C #ACA227 #D3C83E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A731C#FFFFFF#000000##FFFFFF
##7A731C1.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)
#7E6F0B
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#846B62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a731c;
/* rgb */ color: rgb(122, 115, 28);
/* oklch */ color: oklch(54.6% 0.104 104.6);
Tailwind
colors: {
  custom: {
    50: '#a49b5f',
    500: '#7a731c',
    950: '#000000',
  },
}
SCSS
$custom: #7a731c;
$custom-light: #a49b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a731c",
  "rgb": {
    "r": 122,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 55.532,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54563,
    "c": 0.10439,
    "h": 104.6
  },
  "luminance": 0.16483
}

Semantic roles & 50–950 ramp

primary
#7A731C
secondary
#444CAE
accent
#4EE642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A731C

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

Preview Lab → · Contrast checker → · Palette generator →

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