#787815#787815

#787815 is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.5% C 0.114 H 109.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#787815
RGBrgb(120, 120, 21)
HSLhsl(60, 70%, 28%)
HSVhsv(60, 83%, 47%)
CMYKcmyk(0%, 0%, 82.5%, 52.9%)
CIE-LABlab(48.86, -11.80, 49.38)
CIE-LCHlch(48.86, 50.77, 103.44°)
OKLaboklab(55.51% -0.0381 0.1071)
OKLCHoklch(55.51% 0.114 109.6)
XYZxyz(14.5981, 17.4806, 3.3144)
Luminance0.1748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787815 #151578
analogous
#784615 #787815 #467815
triadic
#787815 #157878 #781578
tetradic
#787815 #157846 #151578 #781546
square
#787815 #157846 #151578 #781546
split-complementary
#787815 #154678 #461578
monochromatic
#1A1A05 #44440C #787815 #ACAC1E #DADA2D

Accessibility & contrast

On white

4.67
#787815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#787815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787815
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787815#FFFFFF#000000##FFFFFF
##7878151.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#84751E
Tritanopia (blue-blind)
#817066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #787815;
/* rgb */ color: rgb(120, 120, 21);
/* oklch */ color: oklch(55.5% 0.114 109.6);
Tailwind
colors: {
  custom: {
    50: '#a29e5d',
    500: '#787815',
    950: '#000000',
  },
}
SCSS
$custom: #787815;
$custom-light: #a29e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787815",
  "rgb": {
    "r": 120,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 60,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.5551,
    "c": 0.11363,
    "h": 109.6
  },
  "luminance": 0.1748
}

Semantic roles & 50–950 ramp

primary
#787815
secondary
#3B3BAE
accent
#3BED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787815

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

Preview Lab → · Contrast checker → · Palette generator →

#787815 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva