#778228#778228

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

Color values

HEX#778228
RGBrgb(119, 130, 40)
HSLhsl(67, 53%, 33%)
HSVhsv(67, 69%, 51%)
CMYKcmyk(8.5%, 0%, 69.2%, 49%)
CIE-LABlab(51.88, -16.67, 45.26)
CIE-LCHlch(51.88, 48.23, 110.22°)
OKLaboklab(57.95% -0.0498 0.1019)
OKLCHoklch(57.95% 0.113 116)
XYZxyz(15.9738, 20.0406, 5.0338)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#778228 #332882
analogous
#826028 #778228 #4A8228
triadic
#778228 #287782 #822877
tetradic
#778228 #288260 #332882 #82284A
square
#778228 #288260 #332882 #82284A
split-complementary
#778228 #284A82 #602882
monochromatic
#21240B #4C531A #778228 #A2B136 #BECC59

Accessibility & contrast

On white

4.19
#778228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##778228#FFFFFF#000000##000000
##7782281.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1B
Deuteranopia (green-blind)
#8A7C2F
Tritanopia (blue-blind)
#7F7B70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #778228;
/* rgb */ color: rgb(119, 130, 40);
/* oklch */ color: oklch(57.9% 0.113 116.0);
Tailwind
colors: {
  custom: {
    50: '#a1a667',
    500: '#778228',
    950: '#000000',
  },
}
SCSS
$custom: #778228;
$custom-light: #a1a667;
$custom-dark: #000000;
JSON
{
  "hex": "#778228",
  "rgb": {
    "r": 119,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 67.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57947,
    "c": 0.11341,
    "h": 116
  },
  "luminance": 0.2004
}

Semantic roles & 50–950 ramp

primary
#778228
secondary
#6055B1
accent
#4BDC5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #778228

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

Preview Lab → · Contrast checker → · Palette generator →

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