#787E1E#787E1E

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

Color values

HEX#787E1E
RGBrgb(120, 126, 30)
HSLhsl(64, 62%, 31%)
HSVhsv(64, 76%, 49%)
CMYKcmyk(4.8%, 0%, 76.2%, 50.6%)
CIE-LABlab(50.70, -14.66, 48.05)
CIE-LCHlch(50.70, 50.24, 106.97°)
OKLaboklab(57% -0.0453 0.106)
OKLCHoklch(57% 0.115 113.1)
XYZxyz(15.4414, 19.0089, 4.0837)
Luminance0.1901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E1E #241E7E
analogous
#7E541E #787E1E #487E1E
triadic
#787E1E #1E787E #7E1E78
tetradic
#787E1E #1E7E54 #241E7E #7E1E48
square
#787E1E #1E7E54 #241E7E #7E1E48
split-complementary
#787E1E #1E487E #541E7E
monochromatic
#1A1B06 #494D12 #787E1E #A7AF2A #CAD244

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E1E#FFFFFF#000000##000000
##787E1E1.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)
#88780A
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e1e;
/* rgb */ color: rgb(120, 126, 30);
/* oklch */ color: oklch(57.0% 0.115 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a362',
    500: '#787e1e',
    950: '#000000',
  },
}
SCSS
$custom: #787e1e;
$custom-light: #a2a362;
$custom-dark: #000000;
JSON
{
  "hex": "#787e1e",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 63.75,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56995,
    "c": 0.11522,
    "h": 113.1
  },
  "luminance": 0.19009
}

Semantic roles & 50–950 ramp

primary
#787E1E
secondary
#4D47B1
accent
#43E54D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #787E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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