#787F25#787F25

#787F25 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.112 H 113.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#787F25
RGBrgb(120, 127, 37)
HSLhsl(65, 55%, 32%)
HSVhsv(65, 71%, 50%)
CMYKcmyk(5.5%, 0%, 70.9%, 50.2%)
CIE-LABlab(51.04, -14.82, 45.68)
CIE-LCHlch(51.04, 48.02, 107.97°)
OKLaboklab(57.29% -0.045 0.1022)
OKLCHoklch(57.29% 0.112 113.7)
XYZxyz(15.6695, 19.3057, 4.6508)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F25 #2C257F
analogous
#7F5925 #787F25 #4B7F25
triadic
#787F25 #25787F #7F2578
tetradic
#787F25 #257F59 #2C257F #7F254B
square
#787F25 #257F59 #2C257F #7F254B
split-complementary
#787F25 #254B7F #59257F
monochromatic
#1E2009 #4B5017 #787F25 #A5AE33 #C3CD52

Accessibility & contrast

On white

4.32
#787F25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#787F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F25
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F25#FFFFFF#000000##000000
##787F251.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897917
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f25;
/* rgb */ color: rgb(120, 127, 37);
/* oklch */ color: oklch(57.3% 0.112 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a466',
    500: '#787f25',
    950: '#000000',
  },
}
SCSS
$custom: #787f25;
$custom-light: #a2a466;
$custom-dark: #000000;
JSON
{
  "hex": "#787f25",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 37
  },
  "hsl": {
    "h": 64.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57286,
    "c": 0.1117,
    "h": 113.7
  },
  "luminance": 0.19305
}

Semantic roles & 50–950 ramp

primary
#787F25
secondary
#574FB1
accent
#4ADE55
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F25

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

Preview Lab → · Contrast checker → · Palette generator →

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