#787F2D#787F2D

#787F2D is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.105 H 113.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787F2D
RGBrgb(120, 127, 45)
HSLhsl(65, 48%, 34%)
HSVhsv(65, 65%, 50%)
CMYKcmyk(5.5%, 0%, 64.6%, 50.2%)
CIE-LABlab(51.11, -14.28, 42.28)
CIE-LCHlch(51.11, 44.63, 108.66°)
OKLaboklab(57.36% -0.0426 0.0964)
OKLCHoklch(57.36% 0.105 113.9)
XYZxyz(15.8091, 19.3616, 5.3865)
Luminance0.1936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F2D #342D7F
analogous
#7F5D2D #787F2D #4F7F2D
triadic
#787F2D #2D787F #7F2D78
tetradic
#787F2D #2D7F5D #342D7F #7F2D4F
square
#787F2D #2D7F5D #342D7F #7F2D4F
split-complementary
#787F2D #2D4F7F #5D2D7F
monochromatic
#23250D #4D521D #787F2D #A3AC3D #BEC760

Accessibility & contrast

On white

4.31
#787F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#787F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F2D
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F2D#FFFFFF#000000##000000
##787F2D1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#887923
Deuteranopia (green-blind)
#887B32
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f2d;
/* rgb */ color: rgb(120, 127, 45);
/* oklch */ color: oklch(57.4% 0.105 113.9);
Tailwind
colors: {
  custom: {
    50: '#a1a46a',
    500: '#787f2d',
    950: '#000000',
  },
}
SCSS
$custom: #787f2d;
$custom-light: #a1a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#787f2d",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 65.122,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57359,
    "c": 0.10539,
    "h": 113.9
  },
  "luminance": 0.19361
}

Semantic roles & 50–950 ramp

primary
#787F2D
secondary
#625BAD
accent
#51D75C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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