#787F2E#787F2E

#787F2E 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#787F2E
RGBrgb(120, 127, 46)
HSLhsl(65, 47%, 34%)
HSVhsv(65, 64%, 50%)
CMYKcmyk(5.5%, 0%, 63.8%, 50.2%)
CIE-LABlab(51.12, -14.21, 41.84)
CIE-LCHlch(51.12, 44.18, 108.76°)
OKLaboklab(57.37% -0.0423 0.0956)
OKLCHoklch(57.37% 0.105 113.9)
XYZxyz(15.8286, 19.3694, 5.4891)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F2E #352E7F
analogous
#7F5E2E #787F2E #507F2E
triadic
#787F2E #2E787F #7F2E78
tetradic
#787F2E #2E7F5E #352E7F #7F2E50
square
#787F2E #2E7F5E #352E7F #7F2E50
split-complementary
#787F2E #2E507F #5E2E7F
monochromatic
#23250D #4E521E #787F2E #A2AC3E #BDC661

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F2E#FFFFFF#000000##000000
##787F2E1.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)
#887924
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f2e;
/* rgb */ color: rgb(120, 127, 46);
/* oklch */ color: oklch(57.4% 0.105 113.9);
Tailwind
colors: {
  custom: {
    50: '#a1a46b',
    500: '#787f2e',
    950: '#000000',
  },
}
SCSS
$custom: #787f2e;
$custom-light: #a1a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#787f2e",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 65.185,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57369,
    "c": 0.10454,
    "h": 113.9
  },
  "luminance": 0.19369
}

Semantic roles & 50–950 ramp

primary
#787F2E
secondary
#635CAD
accent
#51D65D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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