#798818#798818

#798818 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.130 H 117.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#798818
RGBrgb(121, 136, 24)
HSLhsl(68, 70%, 31%)
HSVhsv(68, 82%, 53%)
CMYKcmyk(11%, 0%, 82.4%, 46.7%)
CIE-LABlab(53.75, -19.74, 52.83)
CIE-LCHlch(53.75, 56.40, 110.48°)
OKLaboklab(59.46% -0.0598 0.115)
OKLCHoklch(59.46% 0.13 117.5)
XYZxyz(16.8546, 21.7394, 4.1722)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798818 #271888
analogous
#885F18 #798818 #418818
triadic
#798818 #187988 #881879
tetradic
#798818 #18885F #271888 #881841
square
#798818 #18885F #271888 #881841
split-complementary
#798818 #184188 #5F1888
monochromatic
#1C2006 #4B540F #798818 #A7BC21 #C8DD3E

Accessibility & contrast

On white

3.93
#798818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#798818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798818
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798818#FFFFFF#000000##000000
##7988181.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#818074
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798818;
/* rgb */ color: rgb(121, 136, 24);
/* oklch */ color: oklch(59.5% 0.130 117.5);
Tailwind
colors: {
  custom: {
    50: '#a3aa61',
    500: '#798818',
    950: '#000000',
  },
}
SCSS
$custom: #798818;
$custom-light: #a3aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#798818",
  "rgb": {
    "r": 121,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 68.036,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59455,
    "c": 0.12961,
    "h": 117.5
  },
  "luminance": 0.21739
}

Semantic roles & 50–950 ramp

primary
#798818
secondary
#5140BC
accent
#3BED53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798818

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

Preview Lab → · Contrast checker → · Palette generator →

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