#787915#787915

#787915 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.7% C 0.115 H 110.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#787915
RGBrgb(120, 121, 21)
HSLhsl(61, 70%, 28%)
HSVhsv(61, 83%, 47%)
CMYKcmyk(0.8%, 0%, 82.6%, 52.5%)
CIE-LABlab(49.16, -12.35, 49.64)
CIE-LCHlch(49.16, 51.15, 103.97°)
OKLaboklab(55.75% -0.0396 0.1076)
OKLCHoklch(55.75% 0.115 110.2)
XYZxyz(14.7190, 17.7224, 3.3547)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787915 #161579
analogous
#794815 #787915 #467915
triadic
#787915 #157879 #791578
tetradic
#787915 #157948 #161579 #791546
square
#787915 #157948 #161579 #791546
split-complementary
#787915 #154679 #481579
monochromatic
#1A1A05 #44450C #787915 #ACAD1E #D9DB2E

Accessibility & contrast

On white

4.62
#787915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#787915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787915
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787915#FFFFFF#000000##FFFFFF
##7879151.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#84761E
Tritanopia (blue-blind)
#817167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #787915;
/* rgb */ color: rgb(120, 121, 21);
/* oklch */ color: oklch(55.7% 0.115 110.2);
Tailwind
colors: {
  custom: {
    50: '#a29f5d',
    500: '#787915',
    950: '#000000',
  },
}
SCSS
$custom: #787915;
$custom-light: #a29f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787915",
  "rgb": {
    "r": 120,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 60.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.55747,
    "c": 0.11467,
    "h": 110.2
  },
  "luminance": 0.17722
}

Semantic roles & 50–950 ramp

primary
#787915
secondary
#3C3BAF
accent
#3BED3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787915

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

Preview Lab → · Contrast checker → · Palette generator →

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