#798718#798718

#798718 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.2% C 0.128 H 117.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#798718
RGBrgb(121, 135, 24)
HSLhsl(68, 70%, 31%)
HSVhsv(68, 82%, 53%)
CMYKcmyk(10.4%, 0%, 82.2%, 47.1%)
CIE-LABlab(53.45, -19.22, 52.56)
CIE-LCHlch(53.45, 55.97, 110.08°)
OKLaboklab(59.21% -0.0584 0.1144)
OKLCHoklch(59.21% 0.128 117.1)
XYZxyz(16.7144, 21.4591, 4.1255)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798718 #261887
analogous
#875D18 #798718 #418718
triadic
#798718 #187987 #871879
tetradic
#798718 #18875D #261887 #871841
square
#798718 #18875D #261887 #871841
split-complementary
#798718 #184187 #5D1887
monochromatic
#1C1F06 #4A530F #798718 #A8BB21 #C8DC3D

Accessibility & contrast

On white

3.97
#798718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#798718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798718
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798718#FFFFFF#000000##000000
##7987181.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#817F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798718;
/* rgb */ color: rgb(121, 135, 24);
/* oklch */ color: oklch(59.2% 0.128 117.1);
Tailwind
colors: {
  custom: {
    50: '#a3a960',
    500: '#798718',
    950: '#000000',
  },
}
SCSS
$custom: #798718;
$custom-light: #a3a960;
$custom-dark: #000000;
JSON
{
  "hex": "#798718",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 67.568,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59213,
    "c": 0.12845,
    "h": 117.1
  },
  "luminance": 0.21459
}

Semantic roles & 50–950 ramp

primary
#798718
secondary
#5040BB
accent
#3BED52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #798718

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

Preview Lab → · Contrast checker → · Palette generator →

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