#787C2C#787C2C

#787C2C is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.103 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#787C2C
RGBrgb(120, 124, 44)
HSLhsl(63, 48%, 33%)
HSVhsv(63, 65%, 49%)
CMYKcmyk(3.2%, 0%, 64.5%, 51.4%)
CIE-LABlab(50.20, -12.73, 41.77)
CIE-LCHlch(50.20, 43.67, 106.95°)
OKLaboklab(56.63% -0.0384 0.0952)
OKLCHoklch(56.63% 0.103 112)
XYZxyz(15.4084, 18.5906, 5.1590)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C2C #302C7C
analogous
#7C582C #787C2C #507C2C
triadic
#787C2C #2C787C #7C2C78
tetradic
#787C2C #2C7C58 #302C7C #7C2C50
square
#787C2C #2C7C58 #302C7C #7C2C50
split-complementary
#787C2C #2C507C #582C7C
monochromatic
#21220C #4C4F1C #787C2C #A4A93C #C0C55D

Accessibility & contrast

On white

4.45
#787C2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#787C2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C2C
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C2C#FFFFFF#000000##000000
##787C2C1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#857622
Deuteranopia (green-blind)
#867831
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c2c;
/* rgb */ color: rgb(120, 124, 44);
/* oklch */ color: oklch(56.6% 0.103 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a169',
    500: '#787c2c',
    950: '#000000',
  },
}
SCSS
$custom: #787c2c;
$custom-light: #a1a169;
$custom-dark: #000000;
JSON
{
  "hex": "#787c2c",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 44
  },
  "hsl": {
    "h": 63,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56634,
    "c": 0.10262,
    "h": 112
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

primary
#787C2C
secondary
#5C58AC
accent
#51D757
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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