#787C15#787C15

#787C15 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.118 H 112.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#787C15
RGBrgb(120, 124, 21)
HSLhsl(62, 71%, 28%)
HSVhsv(62, 83%, 49%)
CMYKcmyk(3.2%, 0%, 83.1%, 51.4%)
CIE-LABlab(50.05, -13.97, 50.42)
CIE-LCHlch(50.05, 52.33, 105.49°)
OKLaboklab(56.46% -0.0441 0.1093)
OKLCHoklch(56.46% 0.118 112)
XYZxyz(15.0893, 18.4629, 3.4782)
Luminance0.1846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C15 #19157C
analogous
#7C4C15 #787C15 #447C15
triadic
#787C15 #15787C #7C1578
tetradic
#787C15 #157C4C #19157C #7C1544
square
#787C15 #157C4C #19157C #7C1544
split-complementary
#787C15 #15447C #4C157C
monochromatic
#191A04 #45480C #787C15 #ABB01E #D5DC30

Accessibility & contrast

On white

4.48
#787C15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#787C15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C15
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C15#FFFFFF#000000##000000
##787C151.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#87781F
Tritanopia (blue-blind)
#817469
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c15;
/* rgb */ color: rgb(120, 124, 21);
/* oklch */ color: oklch(56.5% 0.118 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a15e',
    500: '#787c15',
    950: '#000000',
  },
}
SCSS
$custom: #787c15;
$custom-light: #a2a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#787c15",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 62.33,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56464,
    "c": 0.11787,
    "h": 112
  },
  "luminance": 0.18463
}

Semantic roles & 50–950 ramp

primary
#787C15
secondary
#403CB1
accent
#3AEE41
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787C15

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

Preview Lab → · Contrast checker → · Palette generator →

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