#787118#787118

#787118 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 53.9% C 0.105 H 104.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#787118
RGBrgb(120, 113, 24)
HSLhsl(56, 67%, 28%)
HSVhsv(56, 80%, 47%)
CMYKcmyk(0%, 5.8%, 80%, 52.9%)
CIE-LABlab(46.80, -7.81, 46.57)
CIE-LCHlch(46.80, 47.21, 99.52°)
OKLaboklab(53.87% -0.0267 0.1016)
OKLCHoklch(53.87% 0.105 104.7)
XYZxyz(13.8163, 15.8698, 3.1994)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787118 #181F78
analogous
#784118 #787118 #4F7818
triadic
#787118 #187871 #711878
tetradic
#787118 #187841 #181F78 #78184F
square
#787118 #187841 #181F78 #78184F
split-complementary
#787118 #184F78 #411878
monochromatic
#1A1805 #45410E #787118 #ABA122 #D6CB34

Accessibility & contrast

On white

5.03
#787118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#787118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787118
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787118#FFFFFF#000000##FFFFFF
##7871181.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D03
Deuteranopia (green-blind)
#7E711F
Tritanopia (blue-blind)
#826960
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #787118;
/* rgb */ color: rgb(120, 113, 24);
/* oklch */ color: oklch(53.9% 0.105 104.7);
Tailwind
colors: {
  custom: {
    50: '#a2995d',
    500: '#787118',
    950: '#000000',
  },
}
SCSS
$custom: #787118;
$custom-light: #a2995d;
$custom-dark: #000000;
JSON
{
  "hex": "#787118",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 55.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53874,
    "c": 0.10506,
    "h": 104.7
  },
  "luminance": 0.15869
}

Semantic roles & 50–950 ramp

primary
#787118
secondary
#3F47AD
accent
#4BEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #787118

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

Preview Lab → · Contrast checker → · Palette generator →

#787118 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva