#798327#798327

#798327 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.3% C 0.115 H 115.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#798327
RGBrgb(121, 131, 39)
HSLhsl(67, 54%, 33%)
HSVhsv(67, 70%, 51%)
CMYKcmyk(7.6%, 0%, 70.2%, 48.6%)
CIE-LABlab(52.34, -16.37, 46.19)
CIE-LCHlch(52.34, 49.00, 109.52°)
OKLaboklab(58.35% -0.0492 0.1036)
OKLCHoklch(58.35% 0.115 115.4)
XYZxyz(16.3681, 20.4443, 5.0029)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798327 #312783
analogous
#835F27 #798327 #4B8327
triadic
#798327 #277983 #832779
tetradic
#798327 #27835F #312783 #83274B
square
#798327 #27835F #312783 #83274B
split-complementary
#798327 #274B83 #5F2783
monochromatic
#22250B #4D5419 #798327 #A5B235 #C0CD57

Accessibility & contrast

On white

4.13
#798327 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#798327 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798327
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798327#FFFFFF#000000##000000
##7983271.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C19
Deuteranopia (green-blind)
#8C7E2E
Tritanopia (blue-blind)
#817B71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798327;
/* rgb */ color: rgb(121, 131, 39);
/* oklch */ color: oklch(58.3% 0.115 115.4);
Tailwind
colors: {
  custom: {
    50: '#a2a667',
    500: '#798327',
    950: '#000000',
  },
}
SCSS
$custom: #798327;
$custom-light: #a2a667;
$custom-dark: #000000;
JSON
{
  "hex": "#798327",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 39
  },
  "hsl": {
    "h": 66.522,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58348,
    "c": 0.11471,
    "h": 115.4
  },
  "luminance": 0.20444
}

Semantic roles & 50–950 ramp

primary
#798327
secondary
#5E54B2
accent
#4ADD5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798327

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

Preview Lab → · Contrast checker → · Palette generator →

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