#796727#796727

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

Color values

HEX#796727
RGBrgb(121, 103, 39)
HSLhsl(47, 51%, 31%)
HSVhsv(47, 68%, 47%)
CMYKcmyk(0%, 14.9%, 67.8%, 52.5%)
CIE-LABlab(44.11, -0.79, 37.63)
CIE-LCHlch(44.11, 37.63, 91.21°)
OKLaboklab(51.79% -0.0051 0.0856)
OKLCHoklch(51.79% 0.086 93.4)
XYZxyz(13.1022, 13.9126, 3.9143)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796727 #273979
analogous
#793E27 #796727 #627927
triadic
#796727 #277967 #672779
tetradic
#796727 #27793E #273979 #792762
square
#796727 #27793E #273979 #792762
split-complementary
#796727 #276279 #3E2779
monochromatic
#1C1809 #4B4018 #796727 #A78E36 #C8AE53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796727#FFFFFF#000000##FFFFFF
##7967271.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)
#726520
Deuteranopia (green-blind)
#766B2A
Tritanopia (blue-blind)
#835F59
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #796727;
/* rgb */ color: rgb(121, 103, 39);
/* oklch */ color: oklch(51.8% 0.086 93.4);
Tailwind
colors: {
  custom: {
    50: '#a29264',
    500: '#796727',
    950: '#000000',
  },
}
SCSS
$custom: #796727;
$custom-light: #a29264;
$custom-dark: #000000;
JSON
{
  "hex": "#796727",
  "rgb": {
    "r": 121,
    "g": 103,
    "b": 39
  },
  "hsl": {
    "h": 46.829,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.51794,
    "c": 0.0857,
    "h": 93.4
  },
  "luminance": 0.13912
}

Semantic roles & 50–950 ramp

primary
#796727
secondary
#5165AB
accent
#6CDB4D
background
#FAF8F6
surface
#F4F0EB
border
#CECBC6
text
#0F0C06
muted
#7F7D7A

Preview Lab

Preview with #796727

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

Preview Lab → · Contrast checker → · Palette generator →

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