#787E37#787E37

#787E37 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.095 H 113.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#787E37
RGBrgb(120, 126, 55)
HSLhsl(65, 39%, 35%)
HSVhsv(65, 56%, 49%)
CMYKcmyk(4.8%, 0%, 56.3%, 50.6%)
CIE-LABlab(50.91, -12.92, 37.27)
CIE-LCHlch(50.91, 39.45, 109.12°)
OKLaboklab(57.23% -0.0377 0.0871)
OKLCHoklch(57.23% 0.095 113.4)
XYZxyz(15.8965, 19.1909, 6.4805)
Luminance0.1919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E37 #3D377E
analogous
#7E6037 #787E37 #547E37
triadic
#787E37 #37787E #7E3778
tetradic
#787E37 #377E60 #3D377E #7E3754
square
#787E37 #377E60 #3D377E #7E3754
split-complementary
#787E37 #37547E #60377E
monochromatic
#272912 #4F5324 #787E37 #A1A94A #B9C06F

Accessibility & contrast

On white

4.34
#787E37 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#787E37 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E37
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E37#FFFFFF#000000##000000
##787E371.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877830
Deuteranopia (green-blind)
#867A3B
Tritanopia (blue-blind)
#7F776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e37;
/* rgb */ color: rgb(120, 126, 55);
/* oklch */ color: oklch(57.2% 0.095 113.4);
Tailwind
colors: {
  custom: {
    50: '#a1a370',
    500: '#787e37',
    950: '#000000',
  },
}
SCSS
$custom: #787e37;
$custom-light: #a1a370;
$custom-dark: #000000;
JSON
{
  "hex": "#787e37",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 55
  },
  "hsl": {
    "h": 65.07,
    "s": 39.227,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57233,
    "c": 0.09485,
    "h": 113.4
  },
  "luminance": 0.19191
}

Semantic roles & 50–950 ramp

primary
#787E37
secondary
#6D68A9
accent
#59CF63
background
#FAFAF6
surface
#F3F3EC
border
#CDCDC7
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #787E37

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

Preview Lab → · Contrast checker → · Palette generator →

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