#787A15#787A15

#787A15 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.0% C 0.116 H 110.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#787A15
RGBrgb(120, 122, 21)
HSLhsl(61, 71%, 28%)
HSVhsv(61, 83%, 48%)
CMYKcmyk(1.6%, 0%, 82.8%, 52.2%)
CIE-LABlab(49.46, -12.89, 49.90)
CIE-LCHlch(49.46, 51.54, 104.49°)
OKLaboklab(55.99% -0.0411 0.1082)
OKLCHoklch(55.99% 0.116 110.8)
XYZxyz(14.8412, 17.9667, 3.3955)
Luminance0.1797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A15 #17157A
analogous
#7A4915 #787A15 #457A15
triadic
#787A15 #15787A #7A1578
tetradic
#787A15 #157A49 #17157A #7A1545
square
#787A15 #157A49 #17157A #7A1545
split-complementary
#787A15 #15457A #49157A
monochromatic
#1A1A04 #45460C #787A15 #ABAE1E #D8DB2E

Accessibility & contrast

On white

4.57
#787A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#787A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A15
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A15#FFFFFF#000000##000000
##787A151.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a15;
/* rgb */ color: rgb(120, 122, 21);
/* oklch */ color: oklch(56.0% 0.116 110.8);
Tailwind
colors: {
  custom: {
    50: '#a2a05d',
    500: '#787a15',
    950: '#000000',
  },
}
SCSS
$custom: #787a15;
$custom-light: #a2a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#787a15",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 61.188,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.55986,
    "c": 0.11573,
    "h": 110.8
  },
  "luminance": 0.17966
}

Semantic roles & 50–950 ramp

primary
#787A15
secondary
#3E3BAF
accent
#3AED3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787A15

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

Preview Lab → · Contrast checker → · Palette generator →

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