#798A13#798A13

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

Color values

HEX#798A13
RGBrgb(121, 138, 19)
HSLhsl(69, 76%, 31%)
HSVhsv(69, 86%, 54%)
CMYKcmyk(12.3%, 0%, 86.2%, 45.9%)
CIE-LABlab(54.33, -20.94, 54.68)
CIE-LCHlch(54.33, 58.55, 110.95°)
OKLaboklab(59.92% -0.0635 0.1181)
OKLCHoklch(59.92% 0.134 118.3)
XYZxyz(17.0916, 22.2891, 4.0178)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A13 #24138A
analogous
#8A5F13 #798A13 #3E8A13
triadic
#798A13 #13798A #8A1379
tetradic
#798A13 #138A5F #24138A #8A133E
square
#798A13 #138A5F #24138A #8A133E
split-complementary
#798A13 #133E8A #5F138A
monochromatic
#1B1E04 #4A540C #798A13 #A8C01A #CAE334

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A13#FFFFFF#000000##000000
##798A131.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)
#928221
Tritanopia (blue-blind)
#818275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a13;
/* rgb */ color: rgb(121, 138, 19);
/* oklch */ color: oklch(59.9% 0.134 118.3);
Tailwind
colors: {
  custom: {
    50: '#a3ac5f',
    500: '#798a13',
    950: '#000000',
  },
}
SCSS
$custom: #798a13;
$custom-light: #a3ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#798a13",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 19
  },
  "hsl": {
    "h": 68.571,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59918,
    "c": 0.13404,
    "h": 118.3
  },
  "luminance": 0.22289
}

Semantic roles & 50–950 ramp

primary
#798A13
secondary
#4D3ABE
accent
#35F250
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #798A13

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

Preview Lab → · Contrast checker → · Palette generator →

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