#787C25#787C25

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

Color values

HEX#787C25
RGBrgb(120, 124, 37)
HSLhsl(63, 54%, 32%)
HSVhsv(63, 70%, 49%)
CMYKcmyk(3.2%, 0%, 70.2%, 51.4%)
CIE-LABlab(50.15, -13.20, 44.78)
CIE-LCHlch(50.15, 46.68, 106.42°)
OKLaboklab(56.57% -0.0405 0.1004)
OKLCHoklch(56.57% 0.108 112)
XYZxyz(15.2878, 18.5423, 4.5236)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C25 #29257C
analogous
#7C5525 #787C25 #4D7C25
triadic
#787C25 #25787C #7C2578
tetradic
#787C25 #257C55 #29257C #7C254D
square
#787C25 #257C55 #29257C #7C254D
split-complementary
#787C25 #254D7C #55257C
monochromatic
#1D1E09 #4A4D17 #787C25 #A6AB33 #C5CB50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787C25#FFFFFF#000000##000000
##787C251.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)
#867618
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#80746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c25;
/* rgb */ color: rgb(120, 124, 37);
/* oklch */ color: oklch(56.6% 0.108 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a165',
    500: '#787c25',
    950: '#000000',
  },
}
SCSS
$custom: #787c25;
$custom-light: #a2a165;
$custom-dark: #000000;
JSON
{
  "hex": "#787c25",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 37
  },
  "hsl": {
    "h": 62.759,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5657,
    "c": 0.1082,
    "h": 112
  },
  "luminance": 0.18542
}

Semantic roles & 50–950 ramp

primary
#787C25
secondary
#534FAE
accent
#4ADD51
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C25

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

Preview Lab → · Contrast checker → · Palette generator →

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