#798115#798115

#798115 is a mid, vivid yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.123 H 114.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#798115
RGBrgb(121, 129, 21)
HSLhsl(64, 72%, 29%)
HSVhsv(64, 84%, 51%)
CMYKcmyk(6.2%, 0%, 83.7%, 49.4%)
CIE-LABlab(51.63, -16.19, 51.83)
CIE-LCHlch(51.63, 54.30, 107.34°)
OKLaboklab(57.75% -0.0503 0.1123)
OKLCHoklch(57.75% 0.123 114.1)
XYZxyz(15.8713, 19.8199, 3.6989)
Luminance0.1982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798115 #1D1581
analogous
#815315 #798115 #438115
triadic
#798115 #157981 #811579
tetradic
#798115 #158153 #1D1581 #811543
square
#798115 #158153 #1D1581 #811543
split-complementary
#798115 #154381 #531581
monochromatic
#191A04 #484C0C #798115 #AAB61E #D1DE33

Accessibility & contrast

On white

4.23
#798115 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#798115 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798115
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798115#FFFFFF#000000##000000
##7981151.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C20
Tritanopia (blue-blind)
#82796E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798115;
/* rgb */ color: rgb(121, 129, 21);
/* oklch */ color: oklch(57.8% 0.123 114.1);
Tailwind
colors: {
  custom: {
    50: '#a3a55e',
    500: '#798115',
    950: '#000000',
  },
}
SCSS
$custom: #798115;
$custom-light: #a3a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#798115",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 64.444,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57751,
    "c": 0.12303,
    "h": 114.1
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#798115
secondary
#453CB6
accent
#39EF47
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798115

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

Preview Lab → · Contrast checker → · Palette generator →

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