#788112#788112

#788112 is a mid, vivid yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.125 H 114.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#788112
RGBrgb(120, 129, 18)
HSLhsl(65, 76%, 29%)
HSVhsv(65, 86%, 51%)
CMYKcmyk(7%, 0%, 86%, 49.4%)
CIE-LABlab(51.54, -16.74, 52.53)
CIE-LCHlch(51.54, 55.13, 107.68°)
OKLaboklab(57.65% -0.052 0.1133)
OKLCHoklch(57.65% 0.125 114.6)
XYZxyz(15.7057, 19.7376, 3.5545)
Luminance0.1974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788112 #1B1281
analogous
#815312 #788112 #418112
triadic
#788112 #127881 #811278
tetradic
#788112 #128153 #1B1281 #811241
square
#788112 #128153 #1B1281 #811241
split-complementary
#788112 #124181 #531281
monochromatic
#191B04 #464B0B #788112 #AAB719 #D3E22C

Accessibility & contrast

On white

4.24
#788112 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#788112 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788112
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788112#FFFFFF#000000##000000
##7881121.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C1E
Tritanopia (blue-blind)
#81796E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #788112;
/* rgb */ color: rgb(120, 129, 18);
/* oklch */ color: oklch(57.7% 0.125 114.6);
Tailwind
colors: {
  custom: {
    50: '#a2a55d',
    500: '#788112',
    950: '#000000',
  },
}
SCSS
$custom: #788112;
$custom-light: #a2a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#788112",
  "rgb": {
    "r": 120,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 64.865,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57652,
    "c": 0.12464,
    "h": 114.6
  },
  "luminance": 0.19737
}

Semantic roles & 50–950 ramp

primary
#788112
secondary
#4338B7
accent
#36F245
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #788112

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

Preview Lab → · Contrast checker → · Palette generator →

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