#798730#798730

#798730 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.113 H 117.7°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#798730
RGBrgb(121, 135, 48)
HSLhsl(70, 48%, 36%)
HSVhsv(70, 64%, 53%)
CMYKcmyk(10.4%, 0%, 64.4%, 47.1%)
CIE-LABlab(53.61, -17.86, 43.63)
CIE-LCHlch(53.61, 47.14, 112.26°)
OKLaboklab(59.39% -0.0524 0.0997)
OKLCHoklch(59.39% 0.113 117.7)
XYZxyz(17.0829, 21.6065, 6.0663)
Luminance0.2161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798730 #3E3087
analogous
#876930 #798730 #4D8730
triadic
#798730 #307987 #873079
tetradic
#798730 #308769 #3E3087 #87304D
square
#798730 #308769 #3E3087 #87304D
split-complementary
#798730 #304D87 #693087
monochromatic
#282D10 #515A20 #798730 #A1B440 #BAC968

Accessibility & contrast

On white

3.95
#798730 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#798730 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798730
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798730#FFFFFF#000000##000000
##7987301.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#908025
Deuteranopia (green-blind)
#8E8136
Tritanopia (blue-blind)
#808075
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798730;
/* rgb */ color: rgb(121, 135, 48);
/* oklch */ color: oklch(59.4% 0.113 117.7);
Tailwind
colors: {
  custom: {
    50: '#a2a96d',
    500: '#798730',
    950: '#000000',
  },
}
SCSS
$custom: #798730;
$custom-light: #a2a96d;
$custom-dark: #000000;
JSON
{
  "hex": "#798730",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 48
  },
  "hsl": {
    "h": 69.655,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59391,
    "c": 0.11258,
    "h": 117.7
  },
  "luminance": 0.21606
}

Semantic roles & 50–950 ramp

primary
#798730
secondary
#6F62B1
accent
#51D766
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798730

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

Preview Lab → · Contrast checker → · Palette generator →

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