#796518#796518

#796518 is a mid, moderate yellow. Relative luminance 0.134; OKLCH L 51.2% C 0.095 H 93.6°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#796518
RGBrgb(121, 101, 24)
HSLhsl(48, 67%, 28%)
HSVhsv(48, 80%, 47%)
CMYKcmyk(0%, 16.5%, 80.2%, 52.5%)
CIE-LABlab(43.42, -0.46, 43.49)
CIE-LCHlch(43.42, 43.49, 90.61°)
OKLaboklab(51.21% -0.006 0.095)
OKLCHoklch(51.21% 0.095 93.6)
XYZxyz(12.7044, 13.4390, 2.7888)
Luminance0.1344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796518 #182C79
analogous
#793418 #796518 #5C7918
triadic
#796518 #187965 #651879
tetradic
#796518 #187934 #182C79 #79185C
square
#796518 #187934 #182C79 #79185C
split-complementary
#796518 #185C79 #341879
monochromatic
#1A1505 #463A0E #796518 #AC9022 #D7B535

Accessibility & contrast

On white

5.69
#796518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#796518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796518
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796518#FFFFFF#000000##FFFFFF
##7965181.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716309
Deuteranopia (green-blind)
#76691D
Tritanopia (blue-blind)
#835C56
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #796518;
/* rgb */ color: rgb(121, 101, 24);
/* oklch */ color: oklch(51.2% 0.095 93.6);
Tailwind
colors: {
  custom: {
    50: '#a3905c',
    500: '#796518',
    950: '#000000',
  },
}
SCSS
$custom: #796518;
$custom-light: #a3905c;
$custom-dark: #000000;
JSON
{
  "hex": "#796518",
  "rgb": {
    "r": 121,
    "g": 101,
    "b": 24
  },
  "hsl": {
    "h": 47.629,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51212,
    "c": 0.09519,
    "h": 93.6
  },
  "luminance": 0.13438
}

Semantic roles & 50–950 ramp

primary
#796518
secondary
#3F56AE
accent
#61EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796518

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

Preview Lab → · Contrast checker → · Palette generator →

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