#798215#798215

#798215 is a mid, vivid yellow. Relative luminance 0.201; OKLCH L 58.0% C 0.124 H 114.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#798215
RGBrgb(121, 130, 21)
HSLhsl(65, 72%, 30%)
HSVhsv(65, 84%, 51%)
CMYKcmyk(6.9%, 0%, 83.8%, 49%)
CIE-LABlab(51.93, -16.72, 52.10)
CIE-LCHlch(51.93, 54.71, 107.79°)
OKLaboklab(57.99% -0.0517 0.1128)
OKLCHoklch(57.99% 0.124 114.6)
XYZxyz(16.0036, 20.0847, 3.7430)
Luminance0.2008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798215 #1E1582
analogous
#825515 #798215 #438215
triadic
#798215 #157982 #821579
tetradic
#798215 #158255 #1E1582 #821543
square
#798215 #158255 #1E1582 #821543
split-complementary
#798215 #154382 #551582
monochromatic
#191A04 #484D0C #798215 #AAB71E #D0DE33

Accessibility & contrast

On white

4.19
#798215 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#798215 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798215
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798215#FFFFFF#000000##000000
##7982151.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D20
Tritanopia (blue-blind)
#827A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798215;
/* rgb */ color: rgb(121, 130, 21);
/* oklch */ color: oklch(58.0% 0.124 114.6);
Tailwind
colors: {
  custom: {
    50: '#a3a65e',
    500: '#798215',
    950: '#000000',
  },
}
SCSS
$custom: #798215;
$custom-light: #a3a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#798215",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 21
  },
  "hsl": {
    "h": 64.954,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57991,
    "c": 0.12414,
    "h": 114.6
  },
  "luminance": 0.20084
}

Semantic roles & 50–950 ramp

primary
#798215
secondary
#463CB7
accent
#39EF48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798215

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

Preview Lab → · Contrast checker → · Palette generator →

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