#796617#796617

#796617 is a mid, moderate yellow. Relative luminance 0.136; OKLCH L 51.4% C 0.096 H 94.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#796617
RGBrgb(121, 102, 23)
HSLhsl(48, 68%, 28%)
HSVhsv(48, 81%, 47%)
CMYKcmyk(0%, 15.7%, 81%, 52.5%)
CIE-LABlab(43.70, -1.09, 44.12)
CIE-LCHlch(43.70, 44.14, 91.41°)
OKLaboklab(51.43% -0.0079 0.0961)
OKLCHoklch(51.43% 0.096 94.7)
XYZxyz(12.7919, 13.6303, 2.7676)
Luminance0.1363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796617 #172A79
analogous
#793517 #796617 #5B7917
triadic
#796617 #177966 #661779
tetradic
#796617 #177935 #172A79 #79175B
square
#796617 #177935 #172A79 #79175B
split-complementary
#796617 #175B79 #351779
monochromatic
#1A1605 #463B0D #796617 #AC9121 #D8B832

Accessibility & contrast

On white

5.64
#796617 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#796617 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796617
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796617#FFFFFF#000000##FFFFFF
##7966171.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726406
Deuteranopia (green-blind)
#766A1C
Tritanopia (blue-blind)
#835D57
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #796617;
/* rgb */ color: rgb(121, 102, 23);
/* oklch */ color: oklch(51.4% 0.096 94.7);
Tailwind
colors: {
  custom: {
    50: '#a3915b',
    500: '#796617',
    950: '#000000',
  },
}
SCSS
$custom: #796617;
$custom-light: #a3915b;
$custom-dark: #000000;
JSON
{
  "hex": "#796617",
  "rgb": {
    "r": 121,
    "g": 102,
    "b": 23
  },
  "hsl": {
    "h": 48.367,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51432,
    "c": 0.09646,
    "h": 94.7
  },
  "luminance": 0.1363
}

Semantic roles & 50–950 ramp

primary
#796617
secondary
#3E54AE
accent
#5FEB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796617

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

Preview Lab → · Contrast checker → · Palette generator →

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