#78731F#78731F

#78731F is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.4% C 0.103 H 105.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#78731F
RGBrgb(120, 115, 31)
HSLhsl(57, 59%, 30%)
HSVhsv(57, 74%, 47%)
CMYKcmyk(0%, 4.2%, 74.2%, 52.9%)
CIE-LABlab(47.44, -8.59, 44.54)
CIE-LCHlch(47.44, 45.36, 100.92°)
OKLaboklab(54.39% -0.0282 0.0987)
OKLCHoklch(54.39% 0.103 105.9)
XYZxyz(14.1243, 16.3540, 3.7087)
Luminance0.1635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78731F #1F2478
analogous
#78471F #78731F #51781F
triadic
#78731F #1F7873 #731F78
tetradic
#78731F #1F7847 #1F2478 #781F51
square
#78731F #1F7847 #1F2478 #781F51
split-complementary
#78731F #1F5178 #471F78
monochromatic
#181706 #474412 #78731F #A9A22C #CEC743

Accessibility & contrast

On white

4.92
#78731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#78731F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #78731F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78731F#FFFFFF#000000##FFFFFF
##78731F1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F11
Deuteranopia (green-blind)
#7F7225
Tritanopia (blue-blind)
#816B63
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #78731f;
/* rgb */ color: rgb(120, 115, 31);
/* oklch */ color: oklch(54.4% 0.103 105.9);
Tailwind
colors: {
  custom: {
    50: '#a29b61',
    500: '#78731f',
    950: '#000000',
  },
}
SCSS
$custom: #78731f;
$custom-light: #a29b61;
$custom-dark: #000000;
JSON
{
  "hex": "#78731f",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 56.629,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54391,
    "c": 0.10268,
    "h": 105.9
  },
  "luminance": 0.16353
}

Semantic roles & 50–950 ramp

primary
#78731F
secondary
#474DAB
accent
#4EE246
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #78731F

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

Preview Lab → · Contrast checker → · Palette generator →

#78731F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva