#798915#798915

#798915 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.7% C 0.132 H 117.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#798915
RGBrgb(121, 137, 21)
HSLhsl(68, 73%, 31%)
HSVhsv(68, 85%, 54%)
CMYKcmyk(11.7%, 0%, 84.7%, 46.3%)
CIE-LABlab(54.04, -20.36, 53.92)
CIE-LCHlch(54.04, 57.63, 110.69°)
OKLaboklab(59.68% -0.0618 0.1168)
OKLCHoklch(59.68% 0.132 117.9)
XYZxyz(16.9666, 22.0106, 4.0640)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798915 #251589
analogous
#895F15 #798915 #3F8915
triadic
#798915 #157989 #891579
tetradic
#798915 #15895F #251589 #89153F
square
#798915 #15895F #251589 #89153F
split-complementary
#798915 #153F89 #5F1589
monochromatic
#1B1F05 #4A540D #798915 #A8BE1D #C9E038

Accessibility & contrast

On white

3.89
#798915 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#798915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798915
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798915#FFFFFF#000000##000000
##7989151.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#818174
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #798915;
/* rgb */ color: rgb(121, 137, 21);
/* oklch */ color: oklch(59.7% 0.132 117.9);
Tailwind
colors: {
  custom: {
    50: '#a3ab60',
    500: '#798915',
    950: '#000000',
  },
}
SCSS
$custom: #798915;
$custom-light: #a3ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#798915",
  "rgb": {
    "r": 121,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 68.276,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59684,
    "c": 0.13209,
    "h": 117.9
  },
  "luminance": 0.2201
}

Semantic roles & 50–950 ramp

primary
#798915
secondary
#4E3DBD
accent
#38F051
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #798915

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

Preview Lab → · Contrast checker → · Palette generator →

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