#787C27#787C27

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

Color values

HEX#787C27
RGBrgb(120, 124, 39)
HSLhsl(63, 52%, 32%)
HSVhsv(63, 69%, 49%)
CMYKcmyk(3.2%, 0%, 68.5%, 51.4%)
CIE-LABlab(50.16, -13.07, 43.95)
CIE-LCHlch(50.16, 45.85, 106.57°)
OKLaboklab(56.59% -0.0399 0.0989)
OKLCHoklch(56.59% 0.107 112)
XYZxyz(15.3200, 18.5552, 4.6936)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C27 #2B277C
analogous
#7C5627 #787C27 #4D7C27
triadic
#787C27 #27787C #7C2778
tetradic
#787C27 #277C56 #2B277C #7C274D
square
#787C27 #277C56 #2B277C #7C274D
split-complementary
#787C27 #274D7C #56277C
monochromatic
#1E1F0A #4B4D18 #787C27 #A5AB36 #C4C954

Accessibility & contrast

On white

4.46
#787C27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#787C27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C27
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C27#FFFFFF#000000##000000
##787C271.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#86761B
Deuteranopia (green-blind)
#86782D
Tritanopia (blue-blind)
#80746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c27;
/* rgb */ color: rgb(120, 124, 39);
/* oklch */ color: oklch(56.6% 0.107 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a166',
    500: '#787c27',
    950: '#000000',
  },
}
SCSS
$custom: #787c27;
$custom-light: #a2a166;
$custom-dark: #000000;
JSON
{
  "hex": "#787c27",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 39
  },
  "hsl": {
    "h": 62.824,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56587,
    "c": 0.10668,
    "h": 112
  },
  "luminance": 0.18555
}

Semantic roles & 50–950 ramp

primary
#787C27
secondary
#5551AE
accent
#4CDC53
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C27

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

Preview Lab → · Contrast checker → · Palette generator →

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