#797617#797617

#797617 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.1% C 0.110 H 107.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#797617
RGBrgb(121, 118, 23)
HSLhsl(58, 68%, 28%)
HSVhsv(58, 81%, 47%)
CMYKcmyk(0%, 2.5%, 81%, 52.5%)
CIE-LABlab(48.37, -10.16, 48.35)
CIE-LCHlch(48.37, 49.40, 101.87°)
OKLaboklab(55.14% -0.0334 0.1052)
OKLCHoklch(55.14% 0.11 107.6)
XYZxyz(14.5188, 17.0842, 3.3432)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797617 #171A79
analogous
#794517 #797617 #4B7917
triadic
#797617 #177976 #761779
tetradic
#797617 #177945 #171A79 #79174B
square
#797617 #177945 #171A79 #79174B
split-complementary
#797617 #174B79 #451779
monochromatic
#1A1905 #46440D #797617 #ACA821 #D8D332

Accessibility & contrast

On white

4.75
#797617 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#797617 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797617
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797617#FFFFFF#000000##FFFFFF
##7976171.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#82741F
Tritanopia (blue-blind)
#826E64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797617;
/* rgb */ color: rgb(121, 118, 23);
/* oklch */ color: oklch(55.1% 0.110 107.6);
Tailwind
colors: {
  custom: {
    50: '#a39d5e',
    500: '#797617',
    950: '#000000',
  },
}
SCSS
$custom: #797617;
$custom-light: #a39d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797617",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 23
  },
  "hsl": {
    "h": 58.163,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5514,
    "c": 0.11037,
    "h": 107.6
  },
  "luminance": 0.17084
}

Semantic roles & 50–950 ramp

primary
#797617
secondary
#3E41AE
accent
#42EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797617

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

Preview Lab → · Contrast checker → · Palette generator →

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