#787E2A#787E2A

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

Color values

HEX#787E2A
RGBrgb(120, 126, 42)
HSLhsl(64, 50%, 33%)
HSVhsv(64, 67%, 49%)
CMYKcmyk(4.8%, 0%, 66.7%, 50.6%)
CIE-LABlab(50.78, -13.96, 43.28)
CIE-LCHlch(50.78, 45.48, 107.87°)
OKLaboklab(57.09% -0.042 0.098)
OKLCHoklch(57.09% 0.107 113.2)
XYZxyz(15.6249, 19.0823, 5.0502)
Luminance0.1908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E2A #302A7E
analogous
#7E5A2A #787E2A #4E7E2A
triadic
#787E2A #2A787E #7E2A78
tetradic
#787E2A #2A7E5A #302A7E #7E2A4E
square
#787E2A #2A7E5A #302A7E #7E2A4E
split-complementary
#787E2A #2A4E7E #5A2A7E
monochromatic
#21220B #4C501B #787E2A #A4AC39 #C0C85A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E2A#FFFFFF#000000##000000
##787E2A1.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)
#87781F
Deuteranopia (green-blind)
#877A30
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e2a;
/* rgb */ color: rgb(120, 126, 42);
/* oklch */ color: oklch(57.1% 0.107 113.2);
Tailwind
colors: {
  custom: {
    50: '#a1a368',
    500: '#787e2a',
    950: '#000000',
  },
}
SCSS
$custom: #787e2a;
$custom-light: #a1a368;
$custom-dark: #000000;
JSON
{
  "hex": "#787e2a",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 64.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57091,
    "c": 0.10667,
    "h": 113.2
  },
  "luminance": 0.19082
}

Semantic roles & 50–950 ramp

primary
#787E2A
secondary
#5C56AE
accent
#4EDA58
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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