#788017#788017

#788017 is a mid, vivid yellow. Relative luminance 0.195; OKLCH L 57.4% C 0.121 H 114.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#788017
RGBrgb(120, 128, 23)
HSLhsl(65, 70%, 30%)
HSVhsv(65, 82%, 50%)
CMYKcmyk(6.3%, 0%, 82%, 49.8%)
CIE-LABlab(51.26, -16.04, 50.89)
CIE-LCHlch(51.26, 53.36, 107.49°)
OKLaboklab(57.43% -0.0497 0.1107)
OKLCHoklch(57.43% 0.121 114.2)
XYZxyz(15.6200, 19.4936, 3.7502)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788017 #1F1780
analogous
#805317 #788017 #448017
triadic
#788017 #177880 #801778
tetradic
#788017 #178053 #1F1780 #801744
square
#788017 #178053 #1F1780 #801744
split-complementary
#788017 #174480 #531780
monochromatic
#181A05 #474C0E #788017 #A9B420 #CEDB36

Accessibility & contrast

On white

4.29
#788017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#788017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788017
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788017#FFFFFF#000000##000000
##7880171.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B21
Tritanopia (blue-blind)
#81786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #788017;
/* rgb */ color: rgb(120, 128, 23);
/* oklch */ color: oklch(57.4% 0.121 114.2);
Tailwind
colors: {
  custom: {
    50: '#a2a45f',
    500: '#788017',
    950: '#000000',
  },
}
SCSS
$custom: #788017;
$custom-light: #a2a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#788017",
  "rgb": {
    "r": 120,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 64.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57434,
    "c": 0.12132,
    "h": 114.2
  },
  "luminance": 0.19493
}

Semantic roles & 50–950 ramp

primary
#788017
secondary
#473EB4
accent
#3BEC49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788017

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

Preview Lab → · Contrast checker → · Palette generator →

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