#796915#796915

#796915 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.1% C 0.100 H 97.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#796915
RGBrgb(121, 105, 21)
HSLhsl(50, 70%, 28%)
HSVhsv(50, 83%, 47%)
CMYKcmyk(0%, 13.2%, 82.6%, 52.5%)
CIE-LABlab(44.55, -2.90, 45.60)
CIE-LCHlch(44.55, 45.70, 93.64°)
OKLaboklab(52.1% -0.0132 0.0989)
OKLCHoklch(52.1% 0.1 97.6)
XYZxyz(13.0728, 14.2229, 2.7660)
Luminance0.1422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796915 #152579
analogous
#793715 #796915 #577915
triadic
#796915 #157969 #691579
tetradic
#796915 #157937 #152579 #791557
square
#796915 #157937 #152579 #791557
split-complementary
#796915 #155779 #371579
monochromatic
#1A1705 #453C0C #796915 #AD961E #DBBF2E

Accessibility & contrast

On white

5.46
#796915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#796915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796915
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796915#FFFFFF#000000##FFFFFF
##7969151.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756601
Deuteranopia (green-blind)
#796C1B
Tritanopia (blue-blind)
#836059
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796915;
/* rgb */ color: rgb(121, 105, 21);
/* oklch */ color: oklch(52.1% 0.100 97.6);
Tailwind
colors: {
  custom: {
    50: '#a3935b',
    500: '#796915',
    950: '#000000',
  },
}
SCSS
$custom: #796915;
$custom-light: #a3935b;
$custom-dark: #000000;
JSON
{
  "hex": "#796915",
  "rgb": {
    "r": 121,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 50.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52103,
    "c": 0.09976,
    "h": 97.6
  },
  "luminance": 0.14222
}

Semantic roles & 50–950 ramp

primary
#796915
secondary
#3B4EAF
accent
#57ED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796915

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

Preview Lab → · Contrast checker → · Palette generator →

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