#787B15#787B15

#787B15 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.2% C 0.117 H 111.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#787B15
RGBrgb(120, 123, 21)
HSLhsl(62, 71%, 28%)
HSVhsv(62, 83%, 48%)
CMYKcmyk(2.4%, 0%, 82.9%, 51.8%)
CIE-LABlab(49.75, -13.43, 50.16)
CIE-LCHlch(49.75, 51.93, 104.99°)
OKLaboklab(56.23% -0.0426 0.1087)
OKLCHoklch(56.23% 0.117 111.4)
XYZxyz(14.9646, 18.2135, 3.4366)
Luminance0.1821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B15 #18157B
analogous
#7B4B15 #787B15 #457B15
triadic
#787B15 #15787B #7B1578
tetradic
#787B15 #157B4B #18157B #7B1545
square
#787B15 #157B4B #18157B #7B1545
split-complementary
#787B15 #15457B #4B157B
monochromatic
#191A04 #45470C #787B15 #ABAF1E #D6DB2F

Accessibility & contrast

On white

4.52
#787B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#787B15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B15
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B15#FFFFFF#000000##000000
##787B151.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b15;
/* rgb */ color: rgb(120, 123, 21);
/* oklch */ color: oklch(56.2% 0.117 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a15d',
    500: '#787b15',
    950: '#000000',
  },
}
SCSS
$custom: #787b15;
$custom-light: #a2a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#787b15",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 61.765,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56225,
    "c": 0.11679,
    "h": 111.4
  },
  "luminance": 0.18213
}

Semantic roles & 50–950 ramp

primary
#787B15
secondary
#3F3BB0
accent
#3AEE3F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B15

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

Preview Lab → · Contrast checker → · Palette generator →

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