#787E2B#787E2B

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

Color values

HEX#787E2B
RGBrgb(120, 126, 43)
HSLhsl(64, 49%, 33%)
HSVhsv(64, 66%, 49%)
CMYKcmyk(4.8%, 0%, 65.9%, 50.6%)
CIE-LABlab(50.79, -13.89, 42.85)
CIE-LCHlch(50.79, 45.04, 107.96°)
OKLaboklab(57.1% -0.0417 0.0973)
OKLCHoklch(57.1% 0.106 113.2)
XYZxyz(15.6430, 19.0895, 5.1456)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E2B #312B7E
analogous
#7E5A2B #787E2B #4E7E2B
triadic
#787E2B #2B787E #7E2B78
tetradic
#787E2B #2B7E5A #312B7E #7E2B4E
square
#787E2B #2B7E5A #312B7E #7E2B4E
split-complementary
#787E2B #2B4E7E #5A2B7E
monochromatic
#21230C #4D501B #787E2B #A3AC3B #C0C75C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #787e2b;
/* rgb */ color: rgb(120, 126, 43);
/* oklch */ color: oklch(57.1% 0.106 113.2);
Tailwind
colors: {
  custom: {
    50: '#a1a369',
    500: '#787e2b',
    950: '#000000',
  },
}
SCSS
$custom: #787e2b;
$custom-light: #a1a369;
$custom-dark: #000000;
JSON
{
  "hex": "#787e2b",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 64.337,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57101,
    "c": 0.10585,
    "h": 113.2
  },
  "luminance": 0.19089
}

Semantic roles & 50–950 ramp

primary
#787E2B
secondary
#5E58AD
accent
#4FD959
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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