#787142#787142

#787142 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.4% C 0.067 H 100.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#787142
RGBrgb(120, 113, 66)
HSLhsl(52, 29%, 36%)
HSVhsv(52, 45%, 47%)
CMYKcmyk(0%, 5.8%, 45%, 52.9%)
CIE-LABlab(47.23, -4.56, 27.00)
CIE-LCHlch(47.23, 27.39, 99.59°)
OKLaboklab(54.35% -0.0126 0.0654)
OKLCHoklch(54.35% 0.067 100.9)
XYZxyz(14.6345, 16.1971, 7.5087)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787142 #424978
analogous
#785642 #787142 #647842
triadic
#787142 #427871 #714278
tetradic
#787142 #427856 #424978 #784264
square
#787142 #427856 #424978 #784264
split-complementary
#787142 #426478 #564278
monochromatic
#292717 #514C2C #787142 #9F9658 #B7B07D

Accessibility & contrast

On white

4.95
#787142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#787142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787142
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787142#FFFFFF#000000##FFFFFF
##7871421.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3E
Deuteranopia (green-blind)
#7B7144
Tritanopia (blue-blind)
#7F6B66
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787142;
/* rgb */ color: rgb(120, 113, 66);
/* oklch */ color: oklch(54.4% 0.067 100.9);
Tailwind
colors: {
  custom: {
    50: '#a09977',
    500: '#787142',
    950: '#000000',
  },
}
SCSS
$custom: #787142;
$custom-light: #a09977;
$custom-dark: #000000;
JSON
{
  "hex": "#787142",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 66
  },
  "hsl": {
    "h": 52.222,
    "s": 29.032,
    "l": 36.471
  },
  "oklch": {
    "l": 0.54352,
    "c": 0.06663,
    "h": 100.9
  },
  "luminance": 0.16197
}

Semantic roles & 50–950 ramp

primary
#787142
secondary
#7379A2
accent
#6FC562
background
#F9F9F7
surface
#F2F2ED
border
#CCCCC8
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #787142

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

Preview Lab → · Contrast checker → · Palette generator →

#787142 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva