#788618#788618

#788618 is a mid, vivid yellow. Relative luminance 0.211; OKLCH L 58.9% C 0.128 H 117.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#788618
RGBrgb(120, 134, 24)
HSLhsl(68, 70%, 31%)
HSVhsv(68, 82%, 53%)
CMYKcmyk(10.4%, 0%, 82.1%, 47.5%)
CIE-LABlab(53.07, -19.15, 52.20)
CIE-LCHlch(53.07, 55.60, 110.14°)
OKLaboklab(58.89% -0.0582 0.1137)
OKLCHoklch(58.89% 0.128 117.1)
XYZxyz(16.4361, 21.1094, 4.0727)
Luminance0.2111 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788618 #261886
analogous
#865D18 #788618 #418618
triadic
#788618 #187886 #861878
tetradic
#788618 #18865D #261886 #861841
square
#788618 #18865D #261886 #861841
split-complementary
#788618 #184186 #5D1886
monochromatic
#1B1E05 #4A520F #788618 #A6BA21 #C8DC3C

Accessibility & contrast

On white

4.02
#788618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#788618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788618
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788618#FFFFFF#000000##000000
##7886181.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#8E7F23
Tritanopia (blue-blind)
#807E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #788618;
/* rgb */ color: rgb(120, 134, 24);
/* oklch */ color: oklch(58.9% 0.128 117.1);
Tailwind
colors: {
  custom: {
    50: '#a2a960',
    500: '#788618',
    950: '#000000',
  },
}
SCSS
$custom: #788618;
$custom-light: #a2a960;
$custom-dark: #000000;
JSON
{
  "hex": "#788618",
  "rgb": {
    "r": 120,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 67.636,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.58889,
    "c": 0.12767,
    "h": 117.1
  },
  "luminance": 0.21109
}

Semantic roles & 50–950 ramp

primary
#788618
secondary
#5040BA
accent
#3BEC52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #788618

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

Preview Lab → · Contrast checker → · Palette generator →

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