#778218#778218

#778218 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 57.8% C 0.123 H 115.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#778218
RGBrgb(119, 130, 24)
HSLhsl(66, 69%, 30%)
HSVhsv(66, 82%, 51%)
CMYKcmyk(8.5%, 0%, 81.5%, 49%)
CIE-LABlab(51.78, -17.51, 51.02)
CIE-LCHlch(51.78, 53.95, 108.94°)
OKLaboklab(57.84% -0.0536 0.1112)
OKLCHoklch(57.84% 0.123 115.7)
XYZxyz(15.7557, 19.9534, 3.8854)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#778218 #231882
analogous
#825818 #778218 #428218
triadic
#778218 #187782 #821877
tetradic
#778218 #188258 #231882 #821842
square
#778218 #188258 #231882 #821842
split-complementary
#778218 #184282 #581882
monochromatic
#181B05 #484E0E #778218 #A6B622 #CADB3A

Accessibility & contrast

On white

4.21
#778218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#778218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #778218
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##778218#FFFFFF#000000##000000
##7782181.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8B7C22
Tritanopia (blue-blind)
#7F7A6F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #778218;
/* rgb */ color: rgb(119, 130, 24);
/* oklch */ color: oklch(57.8% 0.123 115.7);
Tailwind
colors: {
  custom: {
    50: '#a2a660',
    500: '#778218',
    950: '#000000',
  },
}
SCSS
$custom: #778218;
$custom-light: #a2a660;
$custom-dark: #000000;
JSON
{
  "hex": "#778218",
  "rgb": {
    "r": 119,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 66.226,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.12343,
    "h": 115.7
  },
  "luminance": 0.19953
}

Semantic roles & 50–950 ramp

primary
#778218
secondary
#4C40B6
accent
#3CEC4E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #778218

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

Preview Lab → · Contrast checker → · Palette generator →

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