#787E15#787E15

#787E15 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#787E15
RGBrgb(120, 126, 21)
HSLhsl(63, 71%, 29%)
HSVhsv(63, 83%, 49%)
CMYKcmyk(4.8%, 0%, 83.3%, 50.6%)
CIE-LABlab(50.65, -15.05, 50.95)
CIE-LCHlch(50.65, 53.12, 106.45°)
OKLaboklab(56.94% -0.0471 0.1104)
OKLCHoklch(56.94% 0.12 113.1)
XYZxyz(15.3425, 18.9693, 3.5626)
Luminance0.1897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E15 #1B157E
analogous
#7E5015 #787E15 #447E15
triadic
#787E15 #15787E #7E1578
tetradic
#787E15 #157E50 #1B157E #7E1544
square
#787E15 #157E50 #1B157E #7E1544
split-complementary
#787E15 #15447E #50157E
monochromatic
#191A04 #464A0C #787E15 #AAB21E #D3DD31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E15#FFFFFF#000000##000000
##787E151.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: #787e15;
/* rgb */ color: rgb(120, 126, 21);
/* oklch */ color: oklch(56.9% 0.120 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a35e',
    500: '#787e15',
    950: '#000000',
  },
}
SCSS
$custom: #787e15;
$custom-light: #a2a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#787e15",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 21
  },
  "hsl": {
    "h": 63.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56943,
    "c": 0.12004,
    "h": 113.1
  },
  "luminance": 0.18969
}

Semantic roles & 50–950 ramp

primary
#787E15
secondary
#433CB3
accent
#3AEE44
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E15

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

Preview Lab → · Contrast checker → · Palette generator →

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