#787E1C#787E1C

#787E1C 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#787E1C
RGBrgb(120, 126, 28)
HSLhsl(64, 64%, 30%)
HSVhsv(64, 78%, 49%)
CMYKcmyk(4.8%, 0%, 77.8%, 50.6%)
CIE-LABlab(50.69, -14.76, 48.75)
CIE-LCHlch(50.69, 50.93, 106.84°)
OKLaboklab(56.98% -0.0457 0.1071)
OKLCHoklch(56.98% 0.116 113.1)
XYZxyz(15.4167, 18.9990, 3.9534)
Luminance0.1900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E1C #221C7E
analogous
#7E531C #787E1C #477E1C
triadic
#787E1C #1C787E #7E1C78
tetradic
#787E1C #1C7E53 #221C7E #7E1C47
square
#787E1C #1C7E53 #221C7E #7E1C47
split-complementary
#787E1C #1C477E #531C7E
monochromatic
#191A06 #484C11 #787E1C #A8B027 #CBD540

Accessibility & contrast

On white

4.38
#787E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E1C#FFFFFF#000000##000000
##787E1C1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887805
Deuteranopia (green-blind)
#887A24
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e1c;
/* rgb */ color: rgb(120, 126, 28);
/* oklch */ color: oklch(57.0% 0.116 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a361',
    500: '#787e1c',
    950: '#000000',
  },
}
SCSS
$custom: #787e1c;
$custom-light: #a2a361;
$custom-dark: #000000;
JSON
{
  "hex": "#787e1c",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 63.673,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56982,
    "c": 0.11641,
    "h": 113.1
  },
  "luminance": 0.18999
}

Semantic roles & 50–950 ramp

primary
#787E1C
secondary
#4B44B2
accent
#41E74B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #787E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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