#798018#798018

#798018 is a mid, vivid yellow. Relative luminance 0.196; OKLCH L 57.5% C 0.120 H 113.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#798018
RGBrgb(121, 128, 24)
HSLhsl(64, 68%, 30%)
HSVhsv(64, 81%, 50%)
CMYKcmyk(5.5%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.35, -15.54, 50.70)
CIE-LCHlch(51.35, 53.03, 107.05°)
OKLaboklab(57.53% -0.0483 0.1104)
OKLCHoklch(57.53% 0.121 113.6)
XYZxyz(15.7697, 19.5696, 3.8106)
Luminance0.1957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798018 #1F1880
analogous
#805318 #798018 #458018
triadic
#798018 #187980 #801879
tetradic
#798018 #188053 #1F1880 #801845
square
#798018 #188053 #1F1880 #801845
split-complementary
#798018 #184580 #531880
monochromatic
#181A05 #484C0E #798018 #AAB422 #CFDA39

Accessibility & contrast

On white

4.27
#798018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#798018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798018
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798018#FFFFFF#000000##000000
##7980181.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B22
Tritanopia (blue-blind)
#82786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #798018;
/* rgb */ color: rgb(121, 128, 24);
/* oklch */ color: oklch(57.5% 0.120 113.6);
Tailwind
colors: {
  custom: {
    50: '#a3a45f',
    500: '#798018',
    950: '#000000',
  },
}
SCSS
$custom: #798018;
$custom-light: #a3a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#798018",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 64.038,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57526,
    "c": 0.1205,
    "h": 113.6
  },
  "luminance": 0.19569
}

Semantic roles & 50–950 ramp

primary
#798018
secondary
#4740B4
accent
#3DEB48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798018

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

Preview Lab → · Contrast checker → · Palette generator →

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