#787E2C#787E2C

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

Color values

HEX#787E2C
RGBrgb(120, 126, 44)
HSLhsl(64, 48%, 33%)
HSVhsv(64, 65%, 49%)
CMYKcmyk(4.8%, 0%, 65.1%, 50.6%)
CIE-LABlab(50.80, -13.82, 42.41)
CIE-LCHlch(50.80, 44.60, 108.04°)
OKLaboklab(57.11% -0.0414 0.0965)
OKLCHoklch(57.11% 0.105 113.2)
XYZxyz(15.6616, 19.0969, 5.2434)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E2C #322C7E
analogous
#7E5B2C #787E2C #4F7E2C
triadic
#787E2C #2C787E #7E2C78
tetradic
#787E2C #2C7E5B #322C7E #7E2C4F
square
#787E2C #2C7E5B #322C7E #7E2C4F
split-complementary
#787E2C #2C4F7E #5B2C7E
monochromatic
#22230C #4D511C #787E2C #A3AB3C #BFC75E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E2C#FFFFFF#000000##000000
##787E2C1.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)
#877822
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e2c;
/* rgb */ color: rgb(120, 126, 44);
/* oklch */ color: oklch(57.1% 0.105 113.2);
Tailwind
colors: {
  custom: {
    50: '#a1a369',
    500: '#787e2c',
    950: '#000000',
  },
}
SCSS
$custom: #787e2c;
$custom-light: #a1a369;
$custom-dark: #000000;
JSON
{
  "hex": "#787e2c",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 44
  },
  "hsl": {
    "h": 64.39,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5711,
    "c": 0.10502,
    "h": 113.2
  },
  "luminance": 0.19097
}

Semantic roles & 50–950 ramp

primary
#787E2C
secondary
#5F59AD
accent
#50D85A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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