#787E45#787E45

#787E45 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.080 H 113.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787E45
RGBrgb(120, 126, 69)
HSLhsl(66, 29%, 38%)
HSVhsv(66, 45%, 49%)
CMYKcmyk(4.8%, 0%, 45.2%, 50.6%)
CIE-LABlab(51.09, -11.49, 30.17)
CIE-LCHlch(51.09, 32.29, 110.85°)
OKLaboklab(57.43% -0.0322 0.0728)
OKLCHoklch(57.43% 0.08 113.8)
XYZxyz(16.2809, 19.3447, 8.5053)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E45 #4B457E
analogous
#7E6745 #787E45 #5B7E45
triadic
#787E45 #45787E #7E4578
tetradic
#787E45 #457E67 #4B457E #7E455B
square
#787E45 #457E67 #4B457E #7E455B
split-complementary
#787E45 #455B7E #67457E
monochromatic
#2D2F1A #52562F #787E45 #9DA55B #B5BB83

Accessibility & contrast

On white

4.31
#787E45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#787E45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E45
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E45#FFFFFF#000000##000000
##787E451.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#857940
Deuteranopia (green-blind)
#857A48
Tritanopia (blue-blind)
#7E7870
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787e45;
/* rgb */ color: rgb(120, 126, 69);
/* oklch */ color: oklch(57.4% 0.080 113.8);
Tailwind
colors: {
  custom: {
    50: '#a0a37a',
    500: '#787e45',
    950: '#000000',
  },
}
SCSS
$custom: #787e45;
$custom-light: #a0a37a;
$custom-dark: #000000;
JSON
{
  "hex": "#787e45",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 69
  },
  "hsl": {
    "h": 66.316,
    "s": 29.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.57433,
    "c": 0.07954,
    "h": 113.8
  },
  "luminance": 0.19344
}

Semantic roles & 50–950 ramp

primary
#787E45
secondary
#7D79A6
accent
#62C56D
background
#F9FAF7
surface
#F2F3ED
border
#CCCDC8
text
#0F0F09
muted
#7E7F7B

Preview Lab

Preview with #787E45

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

Preview Lab → · Contrast checker → · Palette generator →

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