#787D45#787D45

#787D45 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.078 H 113.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#787D45
RGBrgb(120, 125, 69)
HSLhsl(65, 29%, 38%)
HSVhsv(65, 45%, 49%)
CMYKcmyk(4%, 0%, 44.8%, 51%)
CIE-LABlab(50.79, -10.94, 29.81)
CIE-LCHlch(50.79, 31.75, 110.16°)
OKLaboklab(57.2% -0.0306 0.0719)
OKLCHoklch(57.2% 0.078 113)
XYZxyz(16.1537, 19.0902, 8.4629)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D45 #4A457D
analogous
#7D6645 #787D45 #5C7D45
triadic
#787D45 #45787D #7D4578
tetradic
#787D45 #457D66 #4A457D #7D455C
square
#787D45 #457D66 #4A457D #7D455C
split-complementary
#787D45 #455C7D #66457D
monochromatic
#2C2E19 #52562F #787D45 #9EA45B #B5BA82

Accessibility & contrast

On white

4.36
#787D45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#787D45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D45
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D45#FFFFFF#000000##000000
##787D451.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#847840
Deuteranopia (green-blind)
#847A48
Tritanopia (blue-blind)
#7E7770
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787d45;
/* rgb */ color: rgb(120, 125, 69);
/* oklch */ color: oklch(57.2% 0.078 113.0);
Tailwind
colors: {
  custom: {
    50: '#a0a27a',
    500: '#787d45',
    950: '#000000',
  },
}
SCSS
$custom: #787d45;
$custom-light: #a0a27a;
$custom-dark: #000000;
JSON
{
  "hex": "#787d45",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 69
  },
  "hsl": {
    "h": 65.357,
    "s": 28.866,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57197,
    "c": 0.07817,
    "h": 113
  },
  "luminance": 0.1909
}

Semantic roles & 50–950 ramp

primary
#787D45
secondary
#7C78A6
accent
#63C56B
background
#F9F9F7
surface
#F2F2ED
border
#CCCCC8
text
#0F0F09
muted
#7E7E7B

Preview Lab

Preview with #787D45

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

Preview Lab → · Contrast checker → · Palette generator →

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