#796728#796728

#796728 is a mid, moderate yellow. Relative luminance 0.139; OKLCH L 51.8% C 0.085 H 93.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#796728
RGBrgb(121, 103, 40)
HSLhsl(47, 50%, 32%)
HSVhsv(47, 67%, 47%)
CMYKcmyk(0%, 14.9%, 66.9%, 52.5%)
CIE-LABlab(44.12, -0.73, 37.15)
CIE-LCHlch(44.12, 37.16, 91.12°)
OKLaboklab(51.81% -0.0048 0.0847)
OKLCHoklch(51.81% 0.085 93.2)
XYZxyz(13.1190, 13.9193, 4.0028)
Luminance0.1392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796728 #283A79
analogous
#793F28 #796728 #637928
triadic
#796728 #287967 #672879
tetradic
#796728 #28793F #283A79 #792863
square
#796728 #28793F #283A79 #792863
split-complementary
#796728 #286379 #3F2879
monochromatic
#1D190A #4B4019 #796728 #A78E37 #C7AD55

Accessibility & contrast

On white

5.55
#796728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#796728 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796728
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796728#FFFFFF#000000##FFFFFF
##7967281.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726521
Deuteranopia (green-blind)
#766B2B
Tritanopia (blue-blind)
#835F5A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #796728;
/* rgb */ color: rgb(121, 103, 40);
/* oklch */ color: oklch(51.8% 0.085 93.2);
Tailwind
colors: {
  custom: {
    50: '#a29265',
    500: '#796728',
    950: '#000000',
  },
}
SCSS
$custom: #796728;
$custom-light: #a29265;
$custom-dark: #000000;
JSON
{
  "hex": "#796728",
  "rgb": {
    "r": 121,
    "g": 103,
    "b": 40
  },
  "hsl": {
    "h": 46.667,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.51805,
    "c": 0.08483,
    "h": 93.2
  },
  "luminance": 0.13919
}

Semantic roles & 50–950 ramp

primary
#796728
secondary
#5266AB
accent
#6DDA4E
background
#FAF8F6
surface
#F4F0EB
border
#CECBC6
text
#0F0C06
muted
#7F7D7A

Preview Lab

Preview with #796728

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

Preview Lab → · Contrast checker → · Palette generator →

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