#798015#798015

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

Color values

HEX#798015
RGBrgb(121, 128, 21)
HSLhsl(64, 72%, 29%)
HSVhsv(64, 84%, 50%)
CMYKcmyk(5.5%, 0%, 83.6%, 49.8%)
CIE-LABlab(51.33, -15.66, 51.57)
CIE-LCHlch(51.33, 53.90, 106.89°)
OKLaboklab(57.51% -0.0488 0.1117)
OKLCHoklch(57.51% 0.122 113.6)
XYZxyz(15.7402, 19.5578, 3.6552)
Luminance0.1956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798015 #1C1580
analogous
#805215 #798015 #448015
triadic
#798015 #157980 #801579
tetradic
#798015 #158052 #1C1580 #801544
square
#798015 #158052 #1C1580 #801544
split-complementary
#798015 #154480 #521580
monochromatic
#191A04 #474B0C #798015 #ABB51E #D2DD32

Accessibility & contrast

On white

4.28
#798015 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798015#FFFFFF#000000##000000
##7980151.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798015;
/* rgb */ color: rgb(121, 128, 21);
/* oklch */ color: oklch(57.5% 0.122 113.6);
Tailwind
colors: {
  custom: {
    50: '#a3a45e',
    500: '#798015',
    950: '#000000',
  },
}
SCSS
$custom: #798015;
$custom-light: #a3a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#798015",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 63.925,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57511,
    "c": 0.12193,
    "h": 113.6
  },
  "luminance": 0.19557
}

Semantic roles & 50–950 ramp

primary
#798015
secondary
#443CB5
accent
#39EF45
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798015

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

Preview Lab → · Contrast checker → · Palette generator →

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