#787D25#787D25

#787D25 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.109 H 112.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787D25
RGBrgb(120, 125, 37)
HSLhsl(63, 54%, 32%)
HSVhsv(63, 70%, 49%)
CMYKcmyk(4%, 0%, 70.4%, 51%)
CIE-LABlab(50.45, -13.74, 45.08)
CIE-LCHlch(50.45, 47.13, 106.95°)
OKLaboklab(56.81% -0.042 0.101)
OKLCHoklch(56.81% 0.109 112.6)
XYZxyz(15.4137, 18.7942, 4.5656)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D25 #2A257D
analogous
#7D5625 #787D25 #4C7D25
triadic
#787D25 #25787D #7D2578
tetradic
#787D25 #257D56 #2A257D #7D254C
square
#787D25 #257D56 #2A257D #7D254C
split-complementary
#787D25 #254C7D #56257D
monochromatic
#1D1F09 #4B4E17 #787D25 #A5AC33 #C5CB51

Accessibility & contrast

On white

4.41
#787D25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787D25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D25
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D25#FFFFFF#000000##000000
##787D251.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877718
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d25;
/* rgb */ color: rgb(120, 125, 37);
/* oklch */ color: oklch(56.8% 0.109 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a265',
    500: '#787d25',
    950: '#000000',
  },
}
SCSS
$custom: #787d25;
$custom-light: #a2a265;
$custom-dark: #000000;
JSON
{
  "hex": "#787d25",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 37
  },
  "hsl": {
    "h": 63.409,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.10936,
    "h": 112.6
  },
  "luminance": 0.18794
}

Semantic roles & 50–950 ramp

primary
#787D25
secondary
#544FAF
accent
#4ADE53
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D25

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

Preview Lab → · Contrast checker → · Palette generator →

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