#7C731F#7C731F

#7C731F is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.102 H 103.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7C731F
RGBrgb(124, 115, 31)
HSLhsl(54, 60%, 30%)
HSVhsv(54, 75%, 49%)
CMYKcmyk(0%, 7.3%, 75%, 51.4%)
CIE-LABlab(47.81, -6.71, 45.03)
CIE-LCHlch(47.81, 45.53, 98.48°)
OKLaboklab(54.78% -0.0231 0.0996)
OKLCHoklch(54.78% 0.102 103.1)
XYZxyz(14.6909, 16.6461, 3.7352)
Luminance0.1664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C731F #1F287C
analogous
#7C451F #7C731F #567C1F
triadic
#7C731F #1F7C73 #731F7C
tetradic
#7C731F #1F7C45 #1F287C #7C1F56
square
#7C731F #1F7C45 #1F287C #7C1F56
split-complementary
#7C731F #1F567C #451F7C
monochromatic
#1A1807 #4B4613 #7C731F #ADA02B #D0C345

Accessibility & contrast

On white

4.85
#7C731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7C731F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C731F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C731F#FFFFFF#000000##FFFFFF
##7C731F1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F10
Deuteranopia (green-blind)
#817325
Tritanopia (blue-blind)
#866B63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c731f;
/* rgb */ color: rgb(124, 115, 31);
/* oklch */ color: oklch(54.8% 0.102 103.1);
Tailwind
colors: {
  custom: {
    50: '#a59b61',
    500: '#7c731f',
    950: '#000000',
  },
}
SCSS
$custom: #7c731f;
$custom-light: #a59b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c731f",
  "rgb": {
    "r": 124,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 54.194,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5478,
    "c": 0.10227,
    "h": 103.1
  },
  "luminance": 0.16645
}

Semantic roles & 50–950 ramp

primary
#7C731F
secondary
#4852AF
accent
#54E345
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C731F

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

Preview Lab → · Contrast checker → · Palette generator →

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