#787217#787217

#787217 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.1% C 0.107 H 105.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#787217
RGBrgb(120, 114, 23)
HSLhsl(56, 68%, 28%)
HSVhsv(56, 81%, 47%)
CMYKcmyk(0%, 5%, 80.8%, 52.9%)
CIE-LABlab(47.09, -8.41, 47.17)
CIE-LCHlch(47.09, 47.91, 100.11°)
OKLaboklab(54.1% -0.0285 0.1027)
OKLCHoklch(54.1% 0.107 105.5)
XYZxyz(13.9183, 16.0901, 3.1830)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787217 #171D78
analogous
#784217 #787217 #4D7817
triadic
#787217 #177872 #721778
tetradic
#787217 #177842 #171D78 #78174D
square
#787217 #177842 #171D78 #78174D
split-complementary
#787217 #174D78 #421778
monochromatic
#1A1805 #45410D #787217 #ABA321 #D8CD32

Accessibility & contrast

On white

4.98
#787217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#787217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787217
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787217#FFFFFF#000000##FFFFFF
##7872171.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#7F711E
Tritanopia (blue-blind)
#816A61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787217;
/* rgb */ color: rgb(120, 114, 23);
/* oklch */ color: oklch(54.1% 0.107 105.5);
Tailwind
colors: {
  custom: {
    50: '#a29a5d',
    500: '#787217',
    950: '#000000',
  },
}
SCSS
$custom: #787217;
$custom-light: #a29a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787217",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 56.289,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54102,
    "c": 0.10658,
    "h": 105.5
  },
  "luminance": 0.1609
}

Semantic roles & 50–950 ramp

primary
#787217
secondary
#3E45AD
accent
#48EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787217

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

Preview Lab → · Contrast checker → · Palette generator →

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