#7A731F#7A731F

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

Color values

HEX#7A731F
RGBrgb(122, 115, 31)
HSLhsl(55, 59%, 30%)
HSVhsv(55, 75%, 48%)
CMYKcmyk(0%, 5.7%, 74.6%, 52.2%)
CIE-LABlab(47.62, -7.65, 44.79)
CIE-LCHlch(47.62, 45.43, 99.70°)
OKLaboklab(54.58% -0.0257 0.0992)
OKLCHoklch(54.58% 0.102 104.5)
XYZxyz(14.4047, 16.4985, 3.7218)
Luminance0.1650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A731F #1F267A
analogous
#7A461F #7A731F #537A1F
triadic
#7A731F #1F7A73 #731F7A
tetradic
#7A731F #1F7A46 #1F267A #7A1F53
square
#7A731F #1F7A46 #1F267A #7A1F53
split-complementary
#7A731F #1F537A #461F7A
monochromatic
#181706 #494513 #7A731F #ABA12B #CFC544

Accessibility & contrast

On white

4.88
#7A731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A731F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A731F#FFFFFF#000000##FFFFFF
##7A731F1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F11
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#836B63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a731f;
/* rgb */ color: rgb(122, 115, 31);
/* oklch */ color: oklch(54.6% 0.102 104.5);
Tailwind
colors: {
  custom: {
    50: '#a39b61',
    500: '#7a731f',
    950: '#000000',
  },
}
SCSS
$custom: #7a731f;
$custom-light: #a39b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a731f",
  "rgb": {
    "r": 122,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 55.385,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.54584,
    "c": 0.10245,
    "h": 104.5
  },
  "luminance": 0.16498
}

Semantic roles & 50–950 ramp

primary
#7A731F
secondary
#474FAD
accent
#51E345
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A731F

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

Preview Lab → · Contrast checker → · Palette generator →

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