#798618#798618

#798618 is a mid, vivid yellow. Relative luminance 0.212; OKLCH L 59.0% C 0.127 H 116.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#798618
RGBrgb(121, 134, 24)
HSLhsl(67, 70%, 31%)
HSVhsv(67, 82%, 53%)
CMYKcmyk(9.7%, 0%, 82.1%, 47.5%)
CIE-LABlab(53.15, -18.70, 52.30)
CIE-LCHlch(53.15, 55.54, 109.68°)
OKLaboklab(58.97% -0.057 0.1138)
OKLCHoklch(58.97% 0.127 116.6)
XYZxyz(16.5756, 21.1813, 4.0792)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798618 #251886
analogous
#865C18 #798618 #428618
triadic
#798618 #187986 #861879
tetradic
#798618 #18865C #251886 #861842
square
#798618 #18865C #251886 #861842
split-complementary
#798618 #184286 #5C1886
monochromatic
#1B1E05 #4A520F #798618 #A8BA21 #C9DC3C

Accessibility & contrast

On white

4.01
#798618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#798618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798618
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798618#FFFFFF#000000##000000
##7986181.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#817E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798618;
/* rgb */ color: rgb(121, 134, 24);
/* oklch */ color: oklch(59.0% 0.127 116.6);
Tailwind
colors: {
  custom: {
    50: '#a3a960',
    500: '#798618',
    950: '#000000',
  },
}
SCSS
$custom: #798618;
$custom-light: #a3a960;
$custom-dark: #000000;
JSON
{
  "hex": "#798618",
  "rgb": {
    "r": 121,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 67.091,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.58971,
    "c": 0.1273,
    "h": 116.6
  },
  "luminance": 0.21181
}

Semantic roles & 50–950 ramp

primary
#798618
secondary
#4E40BA
accent
#3BEC50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #798618

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

Preview Lab → · Contrast checker → · Palette generator →

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