#787E1D#787E1D

#787E1D is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.116 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#787E1D
RGBrgb(120, 126, 29)
HSLhsl(64, 63%, 30%)
HSVhsv(64, 77%, 49%)
CMYKcmyk(4.8%, 0%, 77%, 50.6%)
CIE-LABlab(50.69, -14.71, 48.40)
CIE-LCHlch(50.69, 50.59, 106.91°)
OKLaboklab(56.99% -0.0455 0.1065)
OKLCHoklch(56.99% 0.116 113.1)
XYZxyz(15.4288, 19.0038, 4.0175)
Luminance0.1900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E1D #231D7E
analogous
#7E531D #787E1D #487E1D
triadic
#787E1D #1D787E #7E1D78
tetradic
#787E1D #1D7E53 #231D7E #7E1D48
square
#787E1D #1D7E53 #231D7E #7E1D48
split-complementary
#787E1D #1D487E #531D7E
monochromatic
#191B06 #494C12 #787E1D #A7B028 #CAD342

Accessibility & contrast

On white

4.37
#787E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#787E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E1D
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E1D#FFFFFF#000000##000000
##787E1D1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887807
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e1d;
/* rgb */ color: rgb(120, 126, 29);
/* oklch */ color: oklch(57.0% 0.116 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a361',
    500: '#787e1d',
    950: '#000000',
  },
}
SCSS
$custom: #787e1d;
$custom-light: #a2a361;
$custom-dark: #000000;
JSON
{
  "hex": "#787e1d",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 29
  },
  "hsl": {
    "h": 63.711,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56988,
    "c": 0.11583,
    "h": 113.1
  },
  "luminance": 0.19003
}

Semantic roles & 50–950 ramp

primary
#787E1D
secondary
#4C45B1
accent
#42E64C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #787E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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