#787E30#787E30

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

Color values

HEX#787E30
RGBrgb(120, 126, 48)
HSLhsl(65, 45%, 34%)
HSVhsv(65, 62%, 49%)
CMYKcmyk(4.8%, 0%, 61.9%, 50.6%)
CIE-LABlab(50.84, -13.51, 40.60)
CIE-LCHlch(50.84, 42.79, 108.41°)
OKLaboklab(57.15% -0.0401 0.0933)
OKLCHoklch(57.15% 0.102 113.3)
XYZxyz(15.7405, 19.1285, 5.6587)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E30 #36307E
analogous
#7E5D30 #787E30 #517E30
triadic
#787E30 #30787E #7E3078
tetradic
#787E30 #307E5D #36307E #7E3051
square
#787E30 #307E5D #36307E #7E3051
split-complementary
#787E30 #30517E #5D307E
monochromatic
#24250E #4E521F #787E30 #A2AA41 #BDC464

Accessibility & contrast

On white

4.35
#787E30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#787E30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E30
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E30#FFFFFF#000000##000000
##787E301.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877827
Deuteranopia (green-blind)
#877A35
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e30;
/* rgb */ color: rgb(120, 126, 48);
/* oklch */ color: oklch(57.2% 0.102 113.3);
Tailwind
colors: {
  custom: {
    50: '#a1a36c',
    500: '#787e30',
    950: '#000000',
  },
}
SCSS
$custom: #787e30;
$custom-light: #a1a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#787e30",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 48
  },
  "hsl": {
    "h": 64.615,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57151,
    "c": 0.10153,
    "h": 113.3
  },
  "luminance": 0.19128
}

Semantic roles & 50–950 ramp

primary
#787E30
secondary
#645FAB
accent
#53D55D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E30

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

Preview Lab → · Contrast checker → · Palette generator →

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