#787E1F#787E1F

#787E1F 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#787E1F
RGBrgb(120, 126, 31)
HSLhsl(64, 61%, 31%)
HSVhsv(64, 75%, 49%)
CMYKcmyk(4.8%, 0%, 75.4%, 50.6%)
CIE-LABlab(50.70, -14.61, 47.69)
CIE-LCHlch(50.70, 49.88, 107.04°)
OKLaboklab(57% -0.045 0.1054)
OKLCHoklch(57% 0.115 113.1)
XYZxyz(15.4544, 19.0140, 4.1520)
Luminance0.1901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E1F #251F7E
analogous
#7E541F #787E1F #487E1F
triadic
#787E1F #1F787E #7E1F78
tetradic
#787E1F #1F7E54 #251F7E #7E1F48
square
#787E1F #1F7E54 #251F7E #7E1F48
split-complementary
#787E1F #1F487E #541F7E
monochromatic
#1A1C07 #494D13 #787E1F #A7AF2B #C9D146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #787e1f;
/* rgb */ color: rgb(120, 126, 31);
/* oklch */ color: oklch(57.0% 0.115 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a362',
    500: '#787e1f',
    950: '#000000',
  },
}
SCSS
$custom: #787e1f;
$custom-light: #a2a362;
$custom-dark: #000000;
JSON
{
  "hex": "#787e1f",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 63.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57002,
    "c": 0.1146,
    "h": 113.1
  },
  "luminance": 0.19014
}

Semantic roles & 50–950 ramp

primary
#787E1F
secondary
#4E48B1
accent
#44E44E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #787E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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