#797618#797618

#797618 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#797618
RGBrgb(121, 118, 24)
HSLhsl(58, 67%, 28%)
HSVhsv(58, 80%, 47%)
CMYKcmyk(0%, 2.5%, 80.2%, 52.5%)
CIE-LABlab(48.37, -10.12, 48.02)
CIE-LCHlch(48.37, 49.08, 101.90°)
OKLaboklab(55.15% -0.0332 0.1047)
OKLCHoklch(55.15% 0.11 107.6)
XYZxyz(14.5290, 17.0883, 3.3970)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797618 #181B79
analogous
#794518 #797618 #4B7918
triadic
#797618 #187976 #761879
tetradic
#797618 #187945 #181B79 #79184B
square
#797618 #187945 #181B79 #79184B
split-complementary
#797618 #184B79 #451879
monochromatic
#1A1905 #46440E #797618 #ACA822 #D7D235

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797618#FFFFFF#000000##FFFFFF
##7976181.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)
#827420
Tritanopia (blue-blind)
#826E65
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797618;
/* rgb */ color: rgb(121, 118, 24);
/* oklch */ color: oklch(55.1% 0.110 107.6);
Tailwind
colors: {
  custom: {
    50: '#a39d5e',
    500: '#797618',
    950: '#000000',
  },
}
SCSS
$custom: #797618;
$custom-light: #a39d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797618",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 24
  },
  "hsl": {
    "h": 58.144,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55146,
    "c": 0.10983,
    "h": 107.6
  },
  "luminance": 0.17088
}

Semantic roles & 50–950 ramp

primary
#797618
secondary
#3F42AE
accent
#43EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797618

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

Preview Lab → · Contrast checker → · Palette generator →

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