#787A2E#787A2E

#787A2E is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.098 H 110.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#787A2E
RGBrgb(120, 122, 46)
HSLhsl(62, 45%, 33%)
HSVhsv(62, 62%, 48%)
CMYKcmyk(1.6%, 0%, 62.3%, 52.2%)
CIE-LABlab(49.63, -11.49, 40.23)
CIE-LCHlch(49.63, 41.84, 105.95°)
OKLaboklab(56.18% -0.0346 0.0922)
OKLCHoklch(56.18% 0.098 110.6)
XYZxyz(15.1988, 18.1098, 5.2791)
Luminance0.1811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A2E #302E7A
analogous
#7A562E #787A2E #527A2E
triadic
#787A2E #2E787A #7A2E78
tetradic
#787A2E #2E7A56 #302E7A #7A2E52
square
#787A2E #2E7A56 #302E7A #7A2E52
split-complementary
#787A2E #2E527A #562E7A
monochromatic
#21210C #4C4E1D #787A2E #A4A63F #C0C360

Accessibility & contrast

On white

4.54
#787A2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#787A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A2E
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A2E#FFFFFF#000000##000000
##787A2E1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#837525
Deuteranopia (green-blind)
#847733
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a2e;
/* rgb */ color: rgb(120, 122, 46);
/* oklch */ color: oklch(56.2% 0.098 110.6);
Tailwind
colors: {
  custom: {
    50: '#a1a06a',
    500: '#787a2e',
    950: '#000000',
  },
}
SCSS
$custom: #787a2e;
$custom-light: #a1a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#787a2e",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 61.579,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5618,
    "c": 0.09848,
    "h": 110.6
  },
  "luminance": 0.18109
}

Semantic roles & 50–950 ramp

primary
#787A2E
secondary
#5C5AAA
accent
#53D556
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #787A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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