#798A15#798A15

#798A15 is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 59.9% C 0.133 H 118.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#798A15
RGBrgb(121, 138, 21)
HSLhsl(69, 74%, 31%)
HSVhsv(69, 85%, 54%)
CMYKcmyk(12.3%, 0%, 84.8%, 45.9%)
CIE-LABlab(54.34, -20.87, 54.18)
CIE-LCHlch(54.34, 58.06, 111.07°)
OKLaboklab(59.93% -0.0632 0.1173)
OKLCHoklch(59.93% 0.133 118.3)
XYZxyz(17.1094, 22.2962, 4.1116)
Luminance0.2230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A15 #26158A
analogous
#8A6015 #798A15 #3E8A15
triadic
#798A15 #15798A #8A1579
tetradic
#798A15 #158A60 #26158A #8A153E
square
#798A15 #158A60 #26158A #8A153E
split-complementary
#798A15 #153E8A #60158A
monochromatic
#1C2005 #4A550D #798A15 #A8BF1D #C8E139

Accessibility & contrast

On white

3.85
#798A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#798A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A15
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A15#FFFFFF#000000##000000
##798A151.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928222
Tritanopia (blue-blind)
#818275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a15;
/* rgb */ color: rgb(121, 138, 21);
/* oklch */ color: oklch(59.9% 0.133 118.3);
Tailwind
colors: {
  custom: {
    50: '#a3ac60',
    500: '#798a15',
    950: '#000000',
  },
}
SCSS
$custom: #798a15;
$custom-light: #a3ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#798a15",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 68.718,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59927,
    "c": 0.13325,
    "h": 118.3
  },
  "luminance": 0.22296
}

Semantic roles & 50–950 ramp

primary
#798A15
secondary
#503DBE
accent
#38F052
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798A15

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

Preview Lab → · Contrast checker → · Palette generator →

#798A15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva