#788317#788317

#788317 is a mid, vivid yellow. Relative luminance 0.203; OKLCH L 58.2% C 0.125 H 115.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#788317
RGBrgb(120, 131, 23)
HSLhsl(66, 70%, 30%)
HSVhsv(66, 82%, 51%)
CMYKcmyk(8.4%, 0%, 82.4%, 48.6%)
CIE-LABlab(52.16, -17.62, 51.69)
CIE-LCHlch(52.16, 54.61, 108.83°)
OKLaboklab(58.16% -0.054 0.1124)
OKLCHoklch(58.16% 0.125 115.7)
XYZxyz(16.0171, 20.2878, 3.8826)
Luminance0.2029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788317 #221783
analogous
#835817 #788317 #428317
triadic
#788317 #177883 #831778
tetradic
#788317 #178358 #221783 #831742
square
#788317 #178358 #221783 #831742
split-complementary
#788317 #174283 #581783
monochromatic
#191B05 #484F0E #788317 #A8B720 #CBDC38

Accessibility & contrast

On white

4.15
#788317 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#788317 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788317
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788317#FFFFFF#000000##000000
##7883171.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#807B6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #788317;
/* rgb */ color: rgb(120, 131, 23);
/* oklch */ color: oklch(58.2% 0.125 115.7);
Tailwind
colors: {
  custom: {
    50: '#a2a65f',
    500: '#788317',
    950: '#000000',
  },
}
SCSS
$custom: #788317;
$custom-light: #a2a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#788317",
  "rgb": {
    "r": 120,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 66.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58157,
    "c": 0.1247,
    "h": 115.7
  },
  "luminance": 0.20288
}

Semantic roles & 50–950 ramp

primary
#788317
secondary
#4B3FB7
accent
#3BED4D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788317

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

Preview Lab → · Contrast checker → · Palette generator →

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