#798C15#798C15

#798C15 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.4% C 0.136 H 119.1°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#798C15
RGBrgb(121, 140, 21)
HSLhsl(70, 74%, 32%)
HSVhsv(70, 85%, 55%)
CMYKcmyk(13.6%, 0%, 85%, 45.1%)
CIE-LABlab(54.94, -21.89, 54.70)
CIE-LCHlch(54.94, 58.92, 111.81°)
OKLaboklab(60.41% -0.066 0.1184)
OKLCHoklch(60.41% 0.136 119.1)
XYZxyz(17.3990, 22.8754, 4.2081)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C15 #28158C
analogous
#8C6415 #798C15 #3E8C15
triadic
#798C15 #15798C #8C1579
tetradic
#798C15 #158C64 #28158C #8C153E
square
#798C15 #158C64 #28158C #8C153E
split-complementary
#798C15 #153E8C #64158C
monochromatic
#1D2205 #4B570D #798C15 #A7C11D #C7E13A

Accessibility & contrast

On white

3.77
#798C15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#798C15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C15
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C15#FFFFFF#000000##000000
##798C151.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968300
Deuteranopia (green-blind)
#948422
Tritanopia (blue-blind)
#818477
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798c15;
/* rgb */ color: rgb(121, 140, 21);
/* oklch */ color: oklch(60.4% 0.136 119.1);
Tailwind
colors: {
  custom: {
    50: '#a3ad60',
    500: '#798c15',
    950: '#000000',
  },
}
SCSS
$custom: #798c15;
$custom-light: #a3ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#798c15",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 21
  },
  "hsl": {
    "h": 69.58,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60413,
    "c": 0.13557,
    "h": 119.1
  },
  "luminance": 0.22875
}

Semantic roles & 50–950 ramp

primary
#798C15
secondary
#523DC0
accent
#37F155
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798C15

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

Preview Lab → · Contrast checker → · Palette generator →

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