#796318#796318

#796318 is a mid, moderate yellow. Relative luminance 0.131; OKLCH L 50.8% C 0.094 H 91.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#796318
RGBrgb(121, 99, 24)
HSLhsl(46, 67%, 28%)
HSVhsv(46, 80%, 47%)
CMYKcmyk(0%, 18.2%, 80.2%, 52.5%)
CIE-LABlab(42.85, 0.71, 42.96)
CIE-LCHlch(42.85, 42.96, 89.06°)
OKLaboklab(50.76% -0.0027 0.0939)
OKLCHoklch(50.76% 0.094 91.6)
XYZxyz(12.5126, 13.0554, 2.7249)
Luminance0.1305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796318 #182E79
analogous
#793218 #796318 #5E7918
triadic
#796318 #187963 #631879
tetradic
#796318 #187932 #182E79 #79185E
square
#796318 #187932 #182E79 #79185E
split-complementary
#796318 #185E79 #321879
monochromatic
#1A1505 #46390E #796318 #AC8D22 #D7B235

Accessibility & contrast

On white

5.82
#796318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#796318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796318
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796318#FFFFFF#000000##FFFFFF
##7963181.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6209
Deuteranopia (green-blind)
#74681D
Tritanopia (blue-blind)
#845A55
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #796318;
/* rgb */ color: rgb(121, 99, 24);
/* oklch */ color: oklch(50.8% 0.094 91.6);
Tailwind
colors: {
  custom: {
    50: '#a38f5b',
    500: '#796318',
    950: '#000000',
  },
}
SCSS
$custom: #796318;
$custom-light: #a38f5b;
$custom-dark: #000000;
JSON
{
  "hex": "#796318",
  "rgb": {
    "r": 121,
    "g": 99,
    "b": 24
  },
  "hsl": {
    "h": 46.392,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50761,
    "c": 0.09391,
    "h": 91.6
  },
  "luminance": 0.13055
}

Semantic roles & 50–950 ramp

primary
#796318
secondary
#3F58AE
accent
#65EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796318

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

Preview Lab → · Contrast checker → · Palette generator →

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