#787D42#787D42

#787D42 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.082 H 112.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#787D42
RGBrgb(120, 125, 66)
HSLhsl(65, 31%, 37%)
HSVhsv(65, 47%, 49%)
CMYKcmyk(4%, 0%, 47.2%, 51%)
CIE-LABlab(50.75, -11.28, 31.37)
CIE-LCHlch(50.75, 33.34, 109.77°)
OKLaboklab(57.15% -0.0318 0.0752)
OKLCHoklch(57.15% 0.082 112.9)
XYZxyz(16.0629, 19.0539, 7.9848)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D42 #47427D
analogous
#7D6542 #787D42 #5A7D42
triadic
#787D42 #42787D #7D4278
tetradic
#787D42 #427D65 #47427D #7D425A
square
#787D42 #427D65 #47427D #7D425A
split-complementary
#787D42 #425A7D #65427D
monochromatic
#2B2D18 #52552D #787D42 #9EA557 #B6BB7E

Accessibility & contrast

On white

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

On black

4.81
#787D42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D42
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D42#FFFFFF#000000##000000
##787D421.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#85783D
Deuteranopia (green-blind)
#857A45
Tritanopia (blue-blind)
#7E776F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787d42;
/* rgb */ color: rgb(120, 125, 66);
/* oklch */ color: oklch(57.1% 0.082 112.9);
Tailwind
colors: {
  custom: {
    50: '#a0a278',
    500: '#787d42',
    950: '#000000',
  },
}
SCSS
$custom: #787d42;
$custom-light: #a0a278;
$custom-dark: #000000;
JSON
{
  "hex": "#787d42",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 66
  },
  "hsl": {
    "h": 65.085,
    "s": 30.89,
    "l": 37.451
  },
  "oklch": {
    "l": 0.5715,
    "c": 0.08167,
    "h": 112.9
  },
  "luminance": 0.19054
}

Semantic roles & 50–950 ramp

primary
#787D42
secondary
#7975A6
accent
#61C769
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F09
muted
#7F7E7B

Preview Lab

Preview with #787D42

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

Preview Lab → · Contrast checker → · Palette generator →

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