#787515#787515

#787515 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.8% C 0.111 H 107.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#787515
RGBrgb(120, 117, 21)
HSLhsl(58, 70%, 28%)
HSVhsv(58, 83%, 47%)
CMYKcmyk(0%, 2.5%, 82.5%, 52.9%)
CIE-LABlab(47.97, -10.15, 48.60)
CIE-LCHlch(47.97, 49.65, 101.80°)
OKLaboklab(54.8% -0.0335 0.1054)
OKLCHoklch(54.8% 0.111 107.6)
XYZxyz(14.2430, 16.7703, 3.1961)
Luminance0.1677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787515 #151878
analogous
#784415 #787515 #497815
triadic
#787515 #157875 #751578
tetradic
#787515 #157844 #151878 #781549
square
#787515 #157844 #151878 #781549
split-complementary
#787515 #154978 #441578
monochromatic
#1A1905 #44420C #787515 #ACA81E #DAD52D

Accessibility & contrast

On white

4.82
#787515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#787515 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787515
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787515#FFFFFF#000000##FFFFFF
##7875151.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#81731E
Tritanopia (blue-blind)
#816D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #787515;
/* rgb */ color: rgb(120, 117, 21);
/* oklch */ color: oklch(54.8% 0.111 107.6);
Tailwind
colors: {
  custom: {
    50: '#a29c5d',
    500: '#787515',
    950: '#000000',
  },
}
SCSS
$custom: #787515;
$custom-light: #a29c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787515",
  "rgb": {
    "r": 120,
    "g": 117,
    "b": 21
  },
  "hsl": {
    "h": 58.182,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.54798,
    "c": 0.11057,
    "h": 107.6
  },
  "luminance": 0.1677
}

Semantic roles & 50–950 ramp

primary
#787515
secondary
#3B3FAE
accent
#40ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E04
muted
#7F7E79

Preview Lab

Preview with #787515

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

Preview Lab → · Contrast checker → · Palette generator →

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