#798518#798518

#798518 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.7% C 0.126 H 116.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#798518
RGBrgb(121, 133, 24)
HSLhsl(67, 69%, 31%)
HSVhsv(67, 82%, 52%)
CMYKcmyk(9%, 0%, 82%, 47.8%)
CIE-LABlab(52.85, -18.18, 52.03)
CIE-LCHlch(52.85, 55.12, 109.26°)
OKLaboklab(58.73% -0.0556 0.1133)
OKLCHoklch(58.73% 0.126 116.1)
XYZxyz(16.4380, 20.9062, 4.0333)
Luminance0.2091 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798518 #241885
analogous
#855B18 #798518 #428518
triadic
#798518 #187985 #851879
tetradic
#798518 #18855B #241885 #851842
square
#798518 #18855B #241885 #851842
split-complementary
#798518 #184285 #5B1885
monochromatic
#1B1D05 #4A510F #798518 #A8B921 #CADC3C

Accessibility & contrast

On white

4.05
#798518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#798518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798518
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798518#FFFFFF#000000##000000
##7985181.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8E7F23
Tritanopia (blue-blind)
#817D71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798518;
/* rgb */ color: rgb(121, 133, 24);
/* oklch */ color: oklch(58.7% 0.126 116.1);
Tailwind
colors: {
  custom: {
    50: '#a3a860',
    500: '#798518',
    950: '#000000',
  },
}
SCSS
$custom: #798518;
$custom-light: #a3a860;
$custom-dark: #000000;
JSON
{
  "hex": "#798518",
  "rgb": {
    "r": 121,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 66.606,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5873,
    "c": 0.12615,
    "h": 116.1
  },
  "luminance": 0.20906
}

Semantic roles & 50–950 ramp

primary
#798518
secondary
#4D40B9
accent
#3CEC4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #798518

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

Preview Lab → · Contrast checker → · Palette generator →

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