#778231#778231

#778231 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.0% C 0.106 H 116.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#778231
RGBrgb(119, 130, 49)
HSLhsl(68, 45%, 35%)
HSVhsv(68, 62%, 51%)
CMYKcmyk(8.5%, 0%, 62.3%, 49%)
CIE-LABlab(51.96, -16.02, 41.34)
CIE-LCHlch(51.96, 44.33, 111.19°)
OKLaboklab(58.03% -0.047 0.095)
OKLCHoklch(58.03% 0.106 116.3)
XYZxyz(16.1451, 20.1092, 5.9361)
Luminance0.2011 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#778231 #3C3182
analogous
#826431 #778231 #4F8231
triadic
#778231 #317782 #823177
tetradic
#778231 #318264 #3C3182 #82314F
square
#778231 #318264 #3C3182 #82314F
split-complementary
#778231 #314F82 #643182
monochromatic
#26290F #4E5620 #778231 #A0AE42 #B9C668

Accessibility & contrast

On white

4.18
#778231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#778231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #778231
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##778231#FFFFFF#000000##000000
##7782311.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B28
Deuteranopia (green-blind)
#8A7C36
Tritanopia (blue-blind)
#7E7B71
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #778231;
/* rgb */ color: rgb(119, 130, 49);
/* oklch */ color: oklch(58.0% 0.106 116.3);
Tailwind
colors: {
  custom: {
    50: '#a0a66d',
    500: '#778231',
    950: '#000000',
  },
}
SCSS
$custom: #778231;
$custom-light: #a0a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#778231",
  "rgb": {
    "r": 119,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 68.148,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58034,
    "c": 0.10598,
    "h": 116.3
  },
  "luminance": 0.20109
}

Semantic roles & 50–950 ramp

primary
#778231
secondary
#6C62AD
accent
#53D565
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #778231

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

Preview Lab → · Contrast checker → · Palette generator →

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