#787C1D#787C1D

#787C1D is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.114 H 112.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#787C1D
RGBrgb(120, 124, 29)
HSLhsl(63, 62%, 30%)
HSVhsv(63, 77%, 49%)
CMYKcmyk(3.2%, 0%, 76.6%, 51.4%)
CIE-LABlab(50.09, -13.64, 47.84)
CIE-LCHlch(50.09, 49.75, 105.91°)
OKLaboklab(56.51% -0.0425 0.1053)
OKLCHoklch(56.51% 0.114 112)
XYZxyz(15.1757, 18.4975, 3.9331)
Luminance0.1850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C1D #211D7C
analogous
#7C501D #787C1D #497C1D
triadic
#787C1D #1D787C #7C1D78
tetradic
#787C1D #1D7C50 #211D7C #7C1D49
square
#787C1D #1D7C50 #211D7C #7C1D49
split-complementary
#787C1D #1D497C #501D7C
monochromatic
#181906 #484A11 #787C1D #A8AE29 #CCD341

Accessibility & contrast

On white

4.47
#787C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#787C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C1D
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C1D#FFFFFF#000000##000000
##787C1D1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#867608
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c1d;
/* rgb */ color: rgb(120, 124, 29);
/* oklch */ color: oklch(56.5% 0.114 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a161',
    500: '#787c1d',
    950: '#000000',
  },
}
SCSS
$custom: #787c1d;
$custom-light: #a2a161;
$custom-dark: #000000;
JSON
{
  "hex": "#787c1d",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 29
  },
  "hsl": {
    "h": 62.526,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.5651,
    "c": 0.11358,
    "h": 112
  },
  "luminance": 0.18497
}

Semantic roles & 50–950 ramp

primary
#787C1D
secondary
#4A45B0
accent
#43E549
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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