#787E2D#787E2D

#787E2D is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.104 H 113.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#787E2D
RGBrgb(120, 126, 45)
HSLhsl(64, 47%, 34%)
HSVhsv(64, 64%, 49%)
CMYKcmyk(4.8%, 0%, 64.3%, 50.6%)
CIE-LABlab(50.81, -13.74, 41.96)
CIE-LCHlch(50.81, 44.16, 108.13°)
OKLaboklab(57.12% -0.0411 0.0957)
OKLCHoklch(57.12% 0.104 113.2)
XYZxyz(15.6806, 19.1045, 5.3436)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E2D #332D7E
analogous
#7E5B2D #787E2D #4F7E2D
triadic
#787E2D #2D787E #7E2D78
tetradic
#787E2D #2D7E5B #332D7E #7E2D4F
square
#787E2D #2D7E5B #332D7E #7E2D4F
split-complementary
#787E2D #2D4F7E #5B2D7E
monochromatic
#22240D #4D511D #787E2D #A3AB3D #BEC65F

Accessibility & contrast

On white

4.36
#787E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#787E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E2D
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E2D#FFFFFF#000000##000000
##787E2D1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877823
Deuteranopia (green-blind)
#877A32
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e2d;
/* rgb */ color: rgb(120, 126, 45);
/* oklch */ color: oklch(57.1% 0.104 113.2);
Tailwind
colors: {
  custom: {
    50: '#a1a36a',
    500: '#787e2d',
    950: '#000000',
  },
}
SCSS
$custom: #787e2d;
$custom-light: #a1a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#787e2d",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 64.444,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5712,
    "c": 0.10417,
    "h": 113.2
  },
  "luminance": 0.19104
}

Semantic roles & 50–950 ramp

primary
#787E2D
secondary
#605AAC
accent
#51D75B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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