#798817#798817

#798817 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.130 H 117.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#798817
RGBrgb(121, 136, 23)
HSLhsl(68, 71%, 31%)
HSVhsv(68, 83%, 53%)
CMYKcmyk(11%, 0%, 83.1%, 46.7%)
CIE-LABlab(53.74, -19.77, 53.11)
CIE-LCHlch(53.74, 56.68, 110.42°)
OKLaboklab(59.45% -0.06 0.1154)
OKLCHoklch(59.45% 0.13 117.5)
XYZxyz(16.8444, 21.7353, 4.1184)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798817 #261788
analogous
#885E17 #798817 #408817
triadic
#798817 #177988 #881779
tetradic
#798817 #17885E #261788 #881740
square
#798817 #17885E #261788 #881740
split-complementary
#798817 #174088 #5E1788
monochromatic
#1C1F05 #4A540E #798817 #A8BC20 #C8DE3B

Accessibility & contrast

On white

3.93
#798817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#798817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798817
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798817#FFFFFF#000000##000000
##7988171.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#818074
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798817;
/* rgb */ color: rgb(121, 136, 23);
/* oklch */ color: oklch(59.5% 0.130 117.5);
Tailwind
colors: {
  custom: {
    50: '#a3aa60',
    500: '#798817',
    950: '#000000',
  },
}
SCSS
$custom: #798817;
$custom-light: #a3aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#798817",
  "rgb": {
    "r": 121,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 67.965,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5945,
    "c": 0.13007,
    "h": 117.5
  },
  "luminance": 0.21735
}

Semantic roles & 50–950 ramp

primary
#798817
secondary
#503FBC
accent
#3AEE52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798817

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

Preview Lab → · Contrast checker → · Palette generator →

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