#786E18#786E18

#786E18 is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.102 H 102.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#786E18
RGBrgb(120, 110, 24)
HSLhsl(54, 67%, 28%)
HSVhsv(54, 80%, 47%)
CMYKcmyk(0%, 8.3%, 80%, 52.9%)
CIE-LABlab(45.92, -6.11, 45.76)
CIE-LCHlch(45.92, 46.17, 97.61°)
OKLaboklab(53.17% -0.0219 0.0999)
OKLCHoklch(53.17% 0.102 102.4)
XYZxyz(13.4872, 15.2115, 3.0897)
Luminance0.1521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E18 #182278
analogous
#783E18 #786E18 #527818
triadic
#786E18 #18786E #6E1878
tetradic
#786E18 #18783E #182278 #781852
square
#786E18 #18783E #182278 #781852
split-complementary
#786E18 #185278 #3E1878
monochromatic
#1A1705 #453F0E #786E18 #AB9D22 #D6C534

Accessibility & contrast

On white

5.20
#786E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#786E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E18
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E18#FFFFFF#000000##FFFFFF
##786E181.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A05
Deuteranopia (green-blind)
#7C6F1E
Tritanopia (blue-blind)
#82665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e18;
/* rgb */ color: rgb(120, 110, 24);
/* oklch */ color: oklch(53.2% 0.102 102.4);
Tailwind
colors: {
  custom: {
    50: '#a2975d',
    500: '#786e18',
    950: '#000000',
  },
}
SCSS
$custom: #786e18;
$custom-light: #a2975d;
$custom-dark: #000000;
JSON
{
  "hex": "#786e18",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 24
  },
  "hsl": {
    "h": 53.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53173,
    "c": 0.10229,
    "h": 102.4
  },
  "luminance": 0.15211
}

Semantic roles & 50–950 ramp

primary
#786E18
secondary
#3F4AAD
accent
#50EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786E18

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

Preview Lab → · Contrast checker → · Palette generator →

#786E18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva