#798727#798727

#798727 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.120 H 117.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#798727
RGBrgb(121, 135, 39)
HSLhsl(69, 55%, 34%)
HSVhsv(69, 71%, 53%)
CMYKcmyk(10.4%, 0%, 71.1%, 47.1%)
CIE-LABlab(53.54, -18.47, 47.39)
CIE-LCHlch(53.54, 50.87, 111.30°)
OKLaboklab(59.31% -0.055 0.1062)
OKLCHoklch(59.31% 0.12 117.4)
XYZxyz(16.9157, 21.5396, 5.1855)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798727 #352787
analogous
#876527 #798727 #498727
triadic
#798727 #277987 #872779
tetradic
#798727 #278765 #352787 #872749
square
#798727 #278765 #352787 #872749
split-complementary
#798727 #274987 #652787
monochromatic
#24280C #4E5819 #798727 #A4B635 #BECF59

Accessibility & contrast

On white

3.96
#798727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#798727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798727
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798727#FFFFFF#000000##000000
##7987271.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#908018
Deuteranopia (green-blind)
#8F802E
Tritanopia (blue-blind)
#817F74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798727;
/* rgb */ color: rgb(121, 135, 39);
/* oklch */ color: oklch(59.3% 0.120 117.4);
Tailwind
colors: {
  custom: {
    50: '#a2a968',
    500: '#798727',
    950: '#000000',
  },
}
SCSS
$custom: #798727;
$custom-light: #a2a968;
$custom-dark: #000000;
JSON
{
  "hex": "#798727",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 68.75,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5931,
    "c": 0.11957,
    "h": 117.4
  },
  "luminance": 0.21539
}

Semantic roles & 50–950 ramp

primary
#798727
secondary
#6356B4
accent
#49DF5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798727

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

Preview Lab → · Contrast checker → · Palette generator →

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