#788A1B#788A1B

#788A1B is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.131 H 118.9°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#788A1B
RGBrgb(120, 138, 27)
HSLhsl(70, 67%, 32%)
HSVhsv(70, 80%, 54%)
CMYKcmyk(13%, 0%, 80.4%, 45.9%)
CIE-LABlab(54.29, -21.08, 52.38)
CIE-LCHlch(54.29, 56.47, 111.93°)
OKLaboklab(59.88% -0.0633 0.1146)
OKLCHoklch(59.88% 0.131 118.9)
XYZxyz(17.0324, 22.2493, 4.4340)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788A1B #2D1B8A
analogous
#8A651B #788A1B #408A1B
triadic
#788A1B #1B788A #8A1B78
tetradic
#788A1B #1B8A65 #2D1B8A #8A1B40
square
#788A1B #1B8A65 #2D1B8A #8A1B40
split-complementary
#788A1B #1B408A #651B8A
monochromatic
#1F2407 #4B5711 #788A1B #A5BD25 #C2DB45

Accessibility & contrast

On white

3.85
#788A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#788A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788A1B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788A1B#FFFFFF#000000##000000
##788A1B1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#918226
Tritanopia (blue-blind)
#808276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #788a1b;
/* rgb */ color: rgb(120, 138, 27);
/* oklch */ color: oklch(59.9% 0.131 118.9);
Tailwind
colors: {
  custom: {
    50: '#a2ac62',
    500: '#788a1b',
    950: '#000000',
  },
}
SCSS
$custom: #788a1b;
$custom-light: #a2ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#788a1b",
  "rgb": {
    "r": 120,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 69.73,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59876,
    "c": 0.13089,
    "h": 118.9
  },
  "luminance": 0.22249
}

Semantic roles & 50–950 ramp

primary
#788A1B
secondary
#5845BC
accent
#3EEA5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #788A1B

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

Preview Lab → · Contrast checker → · Palette generator →

#788A1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva