#787128#787128

#787128 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.0% C 0.094 H 103.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#787128
RGBrgb(120, 113, 40)
HSLhsl(55, 50%, 31%)
HSVhsv(55, 67%, 47%)
CMYKcmyk(0%, 5.8%, 66.7%, 52.9%)
CIE-LABlab(46.92, -6.92, 40.12)
CIE-LCHlch(46.92, 40.71, 99.79°)
OKLaboklab(54% -0.0224 0.091)
OKLCHoklch(54% 0.094 103.8)
XYZxyz(14.0344, 15.9571, 4.3478)
Luminance0.1596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787128 #282F78
analogous
#784928 #787128 #577828
triadic
#787128 #287871 #712878
tetradic
#787128 #287849 #282F78 #782857
square
#787128 #287849 #282F78 #782857
split-complementary
#787128 #285778 #492878
monochromatic
#1C1B09 #4A4619 #787128 #A69C37 #C6BC54

Accessibility & contrast

On white

5.01
#787128 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#787128 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787128
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787128#FFFFFF#000000##FFFFFF
##7871281.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1F
Deuteranopia (green-blind)
#7D712C
Tritanopia (blue-blind)
#816962
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #787128;
/* rgb */ color: rgb(120, 113, 40);
/* oklch */ color: oklch(54.0% 0.094 103.8);
Tailwind
colors: {
  custom: {
    50: '#a19966',
    500: '#787128',
    950: '#000000',
  },
}
SCSS
$custom: #787128;
$custom-light: #a19966;
$custom-dark: #000000;
JSON
{
  "hex": "#787128",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 40
  },
  "hsl": {
    "h": 54.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54002,
    "c": 0.09375,
    "h": 103.8
  },
  "luminance": 0.15957
}

Semantic roles & 50–950 ramp

primary
#787128
secondary
#525AAA
accent
#5ADA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #787128

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

Preview Lab → · Contrast checker → · Palette generator →

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