#787318#787318

#787318 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.3% C 0.107 H 106.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#787318
RGBrgb(120, 115, 24)
HSLhsl(57, 67%, 28%)
HSVhsv(57, 80%, 47%)
CMYKcmyk(0%, 4.2%, 80%, 52.9%)
CIE-LABlab(47.39, -8.92, 47.10)
CIE-LCHlch(47.39, 47.94, 100.73°)
OKLaboklab(54.34% -0.0298 0.1028)
OKLCHoklch(54.34% 0.107 106.2)
XYZxyz(14.0419, 16.3210, 3.2746)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787318 #181D78
analogous
#784318 #787318 #4D7818
triadic
#787318 #187873 #731878
tetradic
#787318 #187843 #181D78 #78184D
square
#787318 #187843 #181D78 #78184D
split-complementary
#787318 #184D78 #431878
monochromatic
#1A1805 #45420E #787318 #ABA422 #D6CE34

Accessibility & contrast

On white

4.92
#787318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#787318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787318
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787318#FFFFFF#000000##FFFFFF
##7873181.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E02
Deuteranopia (green-blind)
#80721F
Tritanopia (blue-blind)
#816B62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787318;
/* rgb */ color: rgb(120, 115, 24);
/* oklch */ color: oklch(54.3% 0.107 106.2);
Tailwind
colors: {
  custom: {
    50: '#a29b5e',
    500: '#787318',
    950: '#000000',
  },
}
SCSS
$custom: #787318;
$custom-light: #a29b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#787318",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 56.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54343,
    "c": 0.10701,
    "h": 106.2
  },
  "luminance": 0.1632
}

Semantic roles & 50–950 ramp

primary
#787318
secondary
#3F45AD
accent
#47EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787318

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

Preview Lab → · Contrast checker → · Palette generator →

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