#787B25#787B25

#787B25 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.107 H 111.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#787B25
RGBrgb(120, 123, 37)
HSLhsl(62, 54%, 31%)
HSVhsv(62, 70%, 48%)
CMYKcmyk(2.4%, 0%, 69.9%, 51.8%)
CIE-LABlab(49.85, -12.66, 44.48)
CIE-LCHlch(49.85, 46.24, 105.88°)
OKLaboklab(56.33% -0.0389 0.0997)
OKLCHoklch(56.33% 0.107 111.3)
XYZxyz(15.1631, 18.2929, 4.4820)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B25 #28257B
analogous
#7B5325 #787B25 #4D7B25
triadic
#787B25 #25787B #7B2578
tetradic
#787B25 #257B53 #28257B #7B254D
square
#787B25 #257B53 #28257B #7B254D
split-complementary
#787B25 #254D7B #53257B
monochromatic
#1C1D09 #4A4C17 #787B25 #A6AA33 #C6CA50

Accessibility & contrast

On white

4.51
#787B25 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#787B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B25
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B25#FFFFFF#000000##000000
##787B251.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857518
Deuteranopia (green-blind)
#85782B
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b25;
/* rgb */ color: rgb(120, 123, 37);
/* oklch */ color: oklch(56.3% 0.107 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a165',
    500: '#787b25',
    950: '#000000',
  },
}
SCSS
$custom: #787b25;
$custom-light: #a2a165;
$custom-dark: #000000;
JSON
{
  "hex": "#787b25",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 37
  },
  "hsl": {
    "h": 62.093,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56331,
    "c": 0.10704,
    "h": 111.3
  },
  "luminance": 0.18293
}

Semantic roles & 50–950 ramp

primary
#787B25
secondary
#524FAD
accent
#4BDD50
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B25

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

Preview Lab → · Contrast checker → · Palette generator →

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