#787E14#787E14

#787E14 is a mid, vivid yellow. Relative luminance 0.190; OKLCH L 56.9% C 0.120 H 113.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#787E14
RGBrgb(120, 126, 20)
HSLhsl(63, 73%, 29%)
HSVhsv(63, 84%, 49%)
CMYKcmyk(4.8%, 0%, 84.1%, 50.6%)
CIE-LABlab(50.65, -15.08, 51.23)
CIE-LCHlch(50.65, 53.40, 106.41°)
OKLaboklab(56.94% -0.0473 0.1108)
OKLCHoklch(56.94% 0.121 113.1)
XYZxyz(15.3334, 18.9656, 3.5147)
Luminance0.1897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E14 #1A147E
analogous
#7E4F14 #787E14 #437E14
triadic
#787E14 #14787E #7E1478
tetradic
#787E14 #147E4F #1A147E #7E1443
square
#787E14 #147E4F #1A147E #7E1443
split-complementary
#787E14 #14437E #4F147E
monochromatic
#191A04 #46490C #787E14 #AAB31C #D4DE2E

Accessibility & contrast

On white

4.38
#787E14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#787E14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E14
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E14#FFFFFF#000000##000000
##787E141.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A1F
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e14;
/* rgb */ color: rgb(120, 126, 20);
/* oklch */ color: oklch(56.9% 0.120 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a35d',
    500: '#787e14',
    950: '#000000',
  },
}
SCSS
$custom: #787e14;
$custom-light: #a2a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#787e14",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 20
  },
  "hsl": {
    "h": 63.396,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56938,
    "c": 0.1205,
    "h": 113.1
  },
  "luminance": 0.18965
}

Semantic roles & 50–950 ramp

primary
#787E14
secondary
#413AB3
accent
#38EF43
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E14

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

Preview Lab → · Contrast checker → · Palette generator →

#787E14 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva