#788718#788718

#788718 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.1% C 0.129 H 117.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#788718
RGBrgb(120, 135, 24)
HSLhsl(68, 70%, 31%)
HSVhsv(68, 82%, 53%)
CMYKcmyk(11.1%, 0%, 82.2%, 47.1%)
CIE-LABlab(53.37, -19.67, 52.47)
CIE-LCHlch(53.37, 56.03, 110.55°)
OKLaboklab(59.13% -0.0596 0.1142)
OKLCHoklch(59.13% 0.129 117.6)
XYZxyz(16.5750, 21.3872, 4.1189)
Luminance0.2139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788718 #271887
analogous
#875E18 #788718 #408718
triadic
#788718 #187887 #871878
tetradic
#788718 #18875E #271887 #871840
square
#788718 #18875E #271887 #871840
split-complementary
#788718 #184087 #5E1887
monochromatic
#1C1F06 #4A530F #788718 #A6BB21 #C7DC3D

Accessibility & contrast

On white

3.98
#788718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#788718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788718
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788718#FFFFFF#000000##000000
##7887181.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #788718;
/* rgb */ color: rgb(120, 135, 24);
/* oklch */ color: oklch(59.1% 0.129 117.6);
Tailwind
colors: {
  custom: {
    50: '#a2a960',
    500: '#788718',
    950: '#000000',
  },
}
SCSS
$custom: #788718;
$custom-light: #a2a960;
$custom-dark: #000000;
JSON
{
  "hex": "#788718",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 68.108,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59131,
    "c": 0.12883,
    "h": 117.6
  },
  "luminance": 0.21387
}

Semantic roles & 50–950 ramp

primary
#788718
secondary
#5140BB
accent
#3BED53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #788718

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

Preview Lab → · Contrast checker → · Palette generator →

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