#787918#787918

#787918 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.8% C 0.113 H 110.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#787918
RGBrgb(120, 121, 24)
HSLhsl(61, 67%, 28%)
HSVhsv(61, 80%, 47%)
CMYKcmyk(0.8%, 0%, 80.2%, 52.5%)
CIE-LABlab(49.17, -12.23, 48.71)
CIE-LCHlch(49.17, 50.23, 104.10°)
OKLaboklab(55.76% -0.039 0.1062)
OKLCHoklch(55.76% 0.113 110.2)
XYZxyz(14.7485, 17.7342, 3.5101)
Luminance0.1773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787918 #191879
analogous
#794918 #787918 #477918
triadic
#787918 #187879 #791878
tetradic
#787918 #187949 #191879 #791847
square
#787918 #187949 #191879 #791847
split-complementary
#787918 #184779 #491879
monochromatic
#191A05 #45460E #787918 #ABAC22 #D5D735

Accessibility & contrast

On white

4.62
#787918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#787918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787918
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787918#FFFFFF#000000##FFFFFF
##7879181.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#847621
Tritanopia (blue-blind)
#817167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #787918;
/* rgb */ color: rgb(120, 121, 24);
/* oklch */ color: oklch(55.8% 0.113 110.2);
Tailwind
colors: {
  custom: {
    50: '#a29f5e',
    500: '#787918',
    950: '#000000',
  },
}
SCSS
$custom: #787918;
$custom-light: #a29f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#787918",
  "rgb": {
    "r": 120,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 60.619,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55764,
    "c": 0.11316,
    "h": 110.2
  },
  "luminance": 0.17734
}

Semantic roles & 50–950 ramp

primary
#787918
secondary
#403FAE
accent
#3EEA40
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787918

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

Preview Lab → · Contrast checker → · Palette generator →

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