#778226#778226

#778226 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 57.9% C 0.115 H 116.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#778226
RGBrgb(119, 130, 38)
HSLhsl(67, 55%, 33%)
HSVhsv(67, 71%, 51%)
CMYKcmyk(8.5%, 0%, 70.8%, 49%)
CIE-LABlab(51.87, -16.80, 46.07)
CIE-LCHlch(51.87, 49.04, 110.03°)
OKLaboklab(57.93% -0.0503 0.1033)
OKLCHoklch(57.93% 0.115 116)
XYZxyz(15.9406, 20.0274, 4.8593)
Luminance0.2003 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#778226 #312682
analogous
#825F26 #778226 #498226
triadic
#778226 #267782 #822677
tetradic
#778226 #26825F #312682 #822649
square
#778226 #26825F #312682 #822649
split-complementary
#778226 #264982 #5F2682
monochromatic
#20230A #4C5318 #778226 #A2B134 #BFCD55

Accessibility & contrast

On white

4.20
#778226 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#778226 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #778226
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##778226#FFFFFF#000000##000000
##7782261.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B18
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#7F7A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #778226;
/* rgb */ color: rgb(119, 130, 38);
/* oklch */ color: oklch(57.9% 0.115 116.0);
Tailwind
colors: {
  custom: {
    50: '#a1a666',
    500: '#778226',
    950: '#000000',
  },
}
SCSS
$custom: #778226;
$custom-light: #a1a666;
$custom-dark: #000000;
JSON
{
  "hex": "#778226",
  "rgb": {
    "r": 119,
    "g": 130,
    "b": 38
  },
  "hsl": {
    "h": 67.174,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5793,
    "c": 0.11489,
    "h": 116
  },
  "luminance": 0.20027
}

Semantic roles & 50–950 ramp

primary
#778226
secondary
#5D52B2
accent
#4ADE5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #778226

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

Preview Lab → · Contrast checker → · Palette generator →

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