#787F2C#787F2C

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

Color values

HEX#787F2C
RGBrgb(120, 127, 44)
HSLhsl(65, 49%, 34%)
HSVhsv(65, 65%, 50%)
CMYKcmyk(5.5%, 0%, 65.4%, 50.2%)
CIE-LABlab(51.10, -14.35, 42.73)
CIE-LCHlch(51.10, 45.07, 108.57°)
OKLaboklab(57.35% -0.0429 0.0972)
OKLCHoklch(57.35% 0.106 113.8)
XYZxyz(15.7901, 19.3540, 5.2863)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F2C #332C7F
analogous
#7F5C2C #787F2C #4E7F2C
triadic
#787F2C #2C787F #7F2C78
tetradic
#787F2C #2C7F5C #332C7F #7F2C4E
square
#787F2C #2C7F5C #332C7F #7F2C4E
split-complementary
#787F2C #2C4E7F #5C2C7F
monochromatic
#22240D #4D521C #787F2C #A3AC3C #BEC75E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F2C#FFFFFF#000000##000000
##787F2C1.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)
#887921
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f2c;
/* rgb */ color: rgb(120, 127, 44);
/* oklch */ color: oklch(57.3% 0.106 113.8);
Tailwind
colors: {
  custom: {
    50: '#a1a46a',
    500: '#787f2c',
    950: '#000000',
  },
}
SCSS
$custom: #787f2c;
$custom-light: #a1a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#787f2c",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 65.06,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57349,
    "c": 0.10624,
    "h": 113.8
  },
  "luminance": 0.19354
}

Semantic roles & 50–950 ramp

primary
#787F2C
secondary
#6059AD
accent
#50D85B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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