#798218#798218

#798218 is a mid, vivid yellow. Relative luminance 0.201; OKLCH L 58.0% C 0.123 H 114.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#798218
RGBrgb(121, 130, 24)
HSLhsl(65, 69%, 30%)
HSVhsv(65, 82%, 51%)
CMYKcmyk(6.9%, 0%, 81.5%, 49%)
CIE-LABlab(51.95, -16.60, 51.23)
CIE-LCHlch(51.95, 53.85, 107.96°)
OKLaboklab(58.01% -0.0512 0.1116)
OKLCHoklch(58.01% 0.123 114.7)
XYZxyz(16.0331, 20.0965, 3.8984)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798218 #211882
analogous
#825618 #798218 #448218
triadic
#798218 #187982 #821879
tetradic
#798218 #188256 #211882 #821844
square
#798218 #188256 #211882 #821844
split-complementary
#798218 #184482 #561882
monochromatic
#191B05 #494E0E #798218 #A9B622 #CDDB3A

Accessibility & contrast

On white

4.18
#798218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#798218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798218
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798218#FFFFFF#000000##000000
##7982181.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#817A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798218;
/* rgb */ color: rgb(121, 130, 24);
/* oklch */ color: oklch(58.0% 0.123 114.7);
Tailwind
colors: {
  custom: {
    50: '#a3a660',
    500: '#798218',
    950: '#000000',
  },
}
SCSS
$custom: #798218;
$custom-light: #a3a660;
$custom-dark: #000000;
JSON
{
  "hex": "#798218",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 65.094,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58006,
    "c": 0.12274,
    "h": 114.7
  },
  "luminance": 0.20096
}

Semantic roles & 50–950 ramp

primary
#798218
secondary
#4A40B6
accent
#3CEC4B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #798218

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

Preview Lab → · Contrast checker → · Palette generator →

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