#798112#798112

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

Color values

HEX#798112
RGBrgb(121, 129, 18)
HSLhsl(64, 76%, 29%)
HSVhsv(64, 86%, 51%)
CMYKcmyk(6.2%, 0%, 86%, 49.4%)
CIE-LABlab(51.62, -16.29, 52.63)
CIE-LCHlch(51.62, 55.09, 107.20°)
OKLaboklab(57.74% -0.0508 0.1135)
OKLCHoklch(57.74% 0.124 114.1)
XYZxyz(15.8451, 19.8095, 3.5611)
Luminance0.1981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798112 #1A1281
analogous
#815212 #798112 #428112
triadic
#798112 #127981 #811279
tetradic
#798112 #128152 #1A1281 #811242
square
#798112 #128152 #1A1281 #811242
split-complementary
#798112 #124281 #521281
monochromatic
#191B04 #474B0B #798112 #ABB719 #D4E22C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798112#FFFFFF#000000##000000
##7981121.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)
#8B7C1E
Tritanopia (blue-blind)
#82796E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798112;
/* rgb */ color: rgb(121, 129, 18);
/* oklch */ color: oklch(57.7% 0.124 114.1);
Tailwind
colors: {
  custom: {
    50: '#a3a55d',
    500: '#798112',
    950: '#000000',
  },
}
SCSS
$custom: #798112;
$custom-light: #a3a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#798112",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 64.324,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57738,
    "c": 0.1243,
    "h": 114.1
  },
  "luminance": 0.19809
}

Semantic roles & 50–950 ramp

primary
#798112
secondary
#4138B7
accent
#36F243
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798112

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

Preview Lab → · Contrast checker → · Palette generator →

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