#787D30#787D30

#787D30 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.100 H 112.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#787D30
RGBrgb(120, 125, 48)
HSLhsl(64, 45%, 34%)
HSVhsv(64, 62%, 49%)
CMYKcmyk(4%, 0%, 61.6%, 51%)
CIE-LABlab(50.54, -12.97, 40.27)
CIE-LCHlch(50.54, 42.31, 107.86°)
OKLaboklab(56.91% -0.0386 0.0926)
OKLCHoklch(56.91% 0.1 112.6)
XYZxyz(15.6132, 18.8740, 5.6163)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D30 #35307D
analogous
#7D5C30 #787D30 #527D30
triadic
#787D30 #30787D #7D3078
tetradic
#787D30 #307D5C #35307D #7D3052
square
#787D30 #307D5C #35307D #7D3052
split-complementary
#787D30 #30527D #5C307D
monochromatic
#23250E #4E511F #787D30 #A2A941 #BDC364

Accessibility & contrast

On white

4.40
#787D30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#787D30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D30
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D30#FFFFFF#000000##000000
##787D301.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#867727
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#80766D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d30;
/* rgb */ color: rgb(120, 125, 48);
/* oklch */ color: oklch(56.9% 0.100 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a26c',
    500: '#787d30',
    950: '#000000',
  },
}
SCSS
$custom: #787d30;
$custom-light: #a1a26c;
$custom-dark: #000000;
JSON
{
  "hex": "#787d30",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 48
  },
  "hsl": {
    "h": 63.896,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56913,
    "c": 0.1003,
    "h": 112.6
  },
  "luminance": 0.18874
}

Semantic roles & 50–950 ramp

primary
#787D30
secondary
#635EAB
accent
#54D45C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787D30

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

Preview Lab → · Contrast checker → · Palette generator →

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