#787518#787518

#787518 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.8% C 0.109 H 107.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#787518
RGBrgb(120, 117, 24)
HSLhsl(58, 67%, 28%)
HSVhsv(58, 80%, 47%)
CMYKcmyk(0%, 2.5%, 80%, 52.9%)
CIE-LABlab(47.98, -10.03, 47.64)
CIE-LCHlch(47.98, 48.68, 101.89°)
OKLaboklab(54.82% -0.0329 0.1039)
OKLCHoklch(54.82% 0.109 107.6)
XYZxyz(14.2725, 16.7821, 3.3514)
Luminance0.1678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787518 #181B78
analogous
#784518 #787518 #4B7818
triadic
#787518 #187875 #751878
tetradic
#787518 #187845 #181B78 #78184B
square
#787518 #187845 #181B78 #78184B
split-complementary
#787518 #184B78 #451878
monochromatic
#1A1905 #45430E #787518 #ABA722 #D6D134

Accessibility & contrast

On white

4.82
#787518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#787518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787518
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787518#FFFFFF#000000##FFFFFF
##7875181.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7001
Deuteranopia (green-blind)
#817320
Tritanopia (blue-blind)
#816D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #787518;
/* rgb */ color: rgb(120, 117, 24);
/* oklch */ color: oklch(54.8% 0.109 107.6);
Tailwind
colors: {
  custom: {
    50: '#a29c5e',
    500: '#787518',
    950: '#000000',
  },
}
SCSS
$custom: #787518;
$custom-light: #a29c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#787518",
  "rgb": {
    "r": 120,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 58.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54815,
    "c": 0.10901,
    "h": 107.6
  },
  "luminance": 0.16782
}

Semantic roles & 50–950 ramp

primary
#787518
secondary
#3F42AD
accent
#44EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787518

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

Preview Lab → · Contrast checker → · Palette generator →

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