#787126#787126

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

Color values

HEX#787126
RGBrgb(120, 113, 38)
HSLhsl(55, 52%, 31%)
HSVhsv(55, 68%, 47%)
CMYKcmyk(0%, 5.8%, 68.3%, 52.9%)
CIE-LABlab(46.90, -7.06, 41.02)
CIE-LCHlch(46.90, 41.62, 99.76°)
OKLaboklab(53.98% -0.023 0.0926)
OKLCHoklch(53.98% 0.095 104)
XYZxyz(14.0013, 15.9438, 4.1733)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787126 #262D78
analogous
#784826 #787126 #567826
triadic
#787126 #267871 #712678
tetradic
#787126 #267848 #262D78 #782656
square
#787126 #267848 #262D78 #782656
split-complementary
#787126 #265678 #482678
monochromatic
#1B1909 #4A4517 #787126 #A69D35 #C8BE51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787126#FFFFFF#000000##FFFFFF
##7871261.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)
#7B6D1C
Deuteranopia (green-blind)
#7D712A
Tritanopia (blue-blind)
#816962
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #787126;
/* rgb */ color: rgb(120, 113, 38);
/* oklch */ color: oklch(54.0% 0.095 104.0);
Tailwind
colors: {
  custom: {
    50: '#a29965',
    500: '#787126',
    950: '#000000',
  },
}
SCSS
$custom: #787126;
$custom-light: #a29965;
$custom-dark: #000000;
JSON
{
  "hex": "#787126",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 38
  },
  "hsl": {
    "h": 54.878,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53982,
    "c": 0.09541,
    "h": 104
  },
  "luminance": 0.15943
}

Semantic roles & 50–950 ramp

primary
#787126
secondary
#5057AA
accent
#59DB4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #787126

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

Preview Lab → · Contrast checker → · Palette generator →

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