#798617#798617

#798617 is a mid, vivid yellow. Relative luminance 0.212; OKLCH L 59.0% C 0.128 H 116.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#798617
RGBrgb(121, 134, 23)
HSLhsl(67, 71%, 31%)
HSVhsv(67, 83%, 53%)
CMYKcmyk(9.7%, 0%, 82.8%, 47.5%)
CIE-LABlab(53.14, -18.74, 52.59)
CIE-LCHlch(53.14, 55.82, 109.61°)
OKLaboklab(58.97% -0.0572 0.1143)
OKLCHoklch(58.97% 0.128 116.6)
XYZxyz(16.5654, 21.1772, 4.0254)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798617 #241786
analogous
#865B17 #798617 #418617
triadic
#798617 #177986 #861779
tetradic
#798617 #17865B #241786 #861741
square
#798617 #17865B #241786 #861741
split-complementary
#798617 #174186 #5B1786
monochromatic
#1B1E05 #4A520E #798617 #A8BA20 #CADD3A

Accessibility & contrast

On white

4.01
#798617 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#798617 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798617
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798617#FFFFFF#000000##000000
##7986171.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#817E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798617;
/* rgb */ color: rgb(121, 134, 23);
/* oklch */ color: oklch(59.0% 0.128 116.6);
Tailwind
colors: {
  custom: {
    50: '#a3a960',
    500: '#798617',
    950: '#000000',
  },
}
SCSS
$custom: #798617;
$custom-light: #a3a960;
$custom-dark: #000000;
JSON
{
  "hex": "#798617",
  "rgb": {
    "r": 121,
    "g": 134,
    "b": 23
  },
  "hsl": {
    "h": 67.027,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58966,
    "c": 0.12776,
    "h": 116.6
  },
  "luminance": 0.21177
}

Semantic roles & 50–950 ramp

primary
#798617
secondary
#4D3FBA
accent
#3AED4F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798617

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

Preview Lab → · Contrast checker → · Palette generator →

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