#798627#798627

#798627 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.1% C 0.118 H 116.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#798627
RGBrgb(121, 134, 39)
HSLhsl(68, 55%, 34%)
HSVhsv(68, 71%, 53%)
CMYKcmyk(9.7%, 0%, 70.9%, 47.5%)
CIE-LABlab(53.23, -17.95, 47.09)
CIE-LCHlch(53.23, 50.40, 110.87°)
OKLaboklab(59.07% -0.0536 0.1055)
OKLCHoklch(59.07% 0.118 116.9)
XYZxyz(16.7768, 21.2618, 5.1392)
Luminance0.2126 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798627 #342786
analogous
#866427 #798627 #4A8627
triadic
#798627 #277986 #862779
tetradic
#798627 #278664 #342786 #86274A
square
#798627 #278664 #342786 #86274A
split-complementary
#798627 #274A86 #642786
monochromatic
#23270B #4E5719 #798627 #A4B535 #BECF59

Accessibility & contrast

On white

4.00
#798627 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#798627 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798627
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798627#FFFFFF#000000##000000
##7986271.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F18
Deuteranopia (green-blind)
#8E802E
Tritanopia (blue-blind)
#817E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798627;
/* rgb */ color: rgb(121, 134, 39);
/* oklch */ color: oklch(59.1% 0.118 116.9);
Tailwind
colors: {
  custom: {
    50: '#a2a967',
    500: '#798627',
    950: '#000000',
  },
}
SCSS
$custom: #798627;
$custom-light: #a2a967;
$custom-dark: #000000;
JSON
{
  "hex": "#798627",
  "rgb": {
    "r": 121,
    "g": 134,
    "b": 39
  },
  "hsl": {
    "h": 68.211,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59069,
    "c": 0.11835,
    "h": 116.9
  },
  "luminance": 0.21262
}

Semantic roles & 50–950 ramp

primary
#798627
secondary
#6255B4
accent
#4ADE5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798627

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

Preview Lab → · Contrast checker → · Palette generator →

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