#78751F#78751F

#78751F is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.9% C 0.105 H 107.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#78751F
RGBrgb(120, 117, 31)
HSLhsl(58, 59%, 30%)
HSVhsv(58, 74%, 47%)
CMYKcmyk(0%, 2.5%, 74.2%, 52.9%)
CIE-LABlab(48.03, -9.70, 45.11)
CIE-LCHlch(48.03, 46.15, 102.14°)
OKLaboklab(54.86% -0.0313 0.1)
OKLCHoklch(54.86% 0.105 107.4)
XYZxyz(14.3549, 16.8151, 3.7855)
Luminance0.1681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78751F #1F2278
analogous
#78491F #78751F #4E781F
triadic
#78751F #1F7875 #751F78
tetradic
#78751F #1F7849 #1F2278 #781F4E
square
#78751F #1F7849 #1F2278 #781F4E
split-complementary
#78751F #1F4E78 #491F78
monochromatic
#181806 #474612 #78751F #A9A42C #CECA43

Accessibility & contrast

On white

4.81
#78751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#78751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #78751F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78751F#FFFFFF#000000##FFFFFF
##78751F1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7010
Deuteranopia (green-blind)
#817325
Tritanopia (blue-blind)
#816D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #78751f;
/* rgb */ color: rgb(120, 117, 31);
/* oklch */ color: oklch(54.9% 0.105 107.4);
Tailwind
colors: {
  custom: {
    50: '#a29c61',
    500: '#78751f',
    950: '#000000',
  },
}
SCSS
$custom: #78751f;
$custom-light: #a29c61;
$custom-dark: #000000;
JSON
{
  "hex": "#78751f",
  "rgb": {
    "r": 120,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 57.978,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54862,
    "c": 0.10474,
    "h": 107.4
  },
  "luminance": 0.16815
}

Semantic roles & 50–950 ramp

primary
#78751F
secondary
#474BAB
accent
#4BE246
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #78751F

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

Preview Lab → · Contrast checker → · Palette generator →

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