#787E13#787E13

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

Color values

HEX#787E13
RGBrgb(120, 126, 19)
HSLhsl(63, 74%, 28%)
HSVhsv(63, 85%, 49%)
CMYKcmyk(4.8%, 0%, 84.9%, 50.6%)
CIE-LABlab(50.64, -15.12, 51.50)
CIE-LCHlch(50.64, 53.67, 106.36°)
OKLaboklab(56.93% -0.0474 0.1112)
OKLCHoklch(56.93% 0.121 113.1)
XYZxyz(15.3246, 18.9622, 3.4688)
Luminance0.1896 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E13 #19137E
analogous
#7E4E13 #787E13 #437E13
triadic
#787E13 #13787E #7E1378
tetradic
#787E13 #137E4E #19137E #7E1343
square
#787E13 #137E4E #19137E #7E1343
split-complementary
#787E13 #13437E #4E137E
monochromatic
#191B04 #45490B #787E13 #ABB31B #D5DF2C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E13#FFFFFF#000000##000000
##787E131.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)
#887A1E
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e13;
/* rgb */ color: rgb(120, 126, 19);
/* oklch */ color: oklch(56.9% 0.121 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a35d',
    500: '#787e13',
    950: '#000000',
  },
}
SCSS
$custom: #787e13;
$custom-light: #a2a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#787e13",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 19
  },
  "hsl": {
    "h": 63.364,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56934,
    "c": 0.12093,
    "h": 113.1
  },
  "luminance": 0.18962
}

Semantic roles & 50–950 ramp

primary
#787E13
secondary
#4039B4
accent
#37F042
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E13

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

Preview Lab → · Contrast checker → · Palette generator →

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