#798A12#798A12

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

Color values

HEX#798A12
RGBrgb(121, 138, 18)
HSLhsl(69, 77%, 31%)
HSVhsv(69, 87%, 54%)
CMYKcmyk(12.3%, 0%, 87%, 45.9%)
CIE-LABlab(54.33, -20.97, 54.92)
CIE-LCHlch(54.33, 58.78, 110.90°)
OKLaboklab(59.91% -0.0636 0.1184)
OKLCHoklch(59.91% 0.134 118.2)
XYZxyz(17.0833, 22.2857, 3.9738)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A12 #23128A
analogous
#8A5F12 #798A12 #3D8A12
triadic
#798A12 #12798A #8A1279
tetradic
#798A12 #128A5F #23128A #8A123D
square
#798A12 #128A5F #23128A #8A123D
split-complementary
#798A12 #123D8A #5F128A
monochromatic
#1A1E04 #4A540B #798A12 #A8C019 #CBE432

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #798a12;
/* rgb */ color: rgb(121, 138, 18);
/* oklch */ color: oklch(59.9% 0.134 118.2);
Tailwind
colors: {
  custom: {
    50: '#a3ac5f',
    500: '#798a12',
    950: '#000000',
  },
}
SCSS
$custom: #798a12;
$custom-light: #a3ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#798a12",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 18
  },
  "hsl": {
    "h": 68.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.59914,
    "c": 0.13442,
    "h": 118.2
  },
  "luminance": 0.22286
}

Semantic roles & 50–950 ramp

primary
#798A12
secondary
#4C39BF
accent
#34F34F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #798A12

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

Preview Lab → · Contrast checker → · Palette generator →

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