#A6B840#A6B840

#A6B840 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.6% C 0.145 H 117.3°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#A6B840
RGBrgb(166, 184, 64)
HSLhsl(69, 48%, 49%)
HSVhsv(69, 65%, 72%)
CMYKcmyk(9.8%, 0%, 65.2%, 27.8%)
CIE-LABlab(71.39, -22.47, 56.62)
CIE-LCHlch(71.39, 60.92, 111.65°)
OKLaboklab(74.56% -0.0664 0.1284)
OKLCHoklch(74.56% 0.145 117.3)
XYZxyz(33.7925, 42.7585, 11.3225)
Luminance0.4276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B840 #5240B8
analogous
#B88E40 #A6B840 #6AB840
triadic
#A6B840 #40A6B8 #B840A6
tetradic
#A6B840 #40B88E #5240B8 #B8406A
square
#A6B840 #40B88E #5240B8 #B8406A
split-complementary
#A6B840 #406AB8 #8E40B8
monochromatic
#545D20 #7D8B30 #A6B840 #BDCB6A #D1DB97

Accessibility & contrast

On white

2.20
#A6B840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#A6B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B840
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B840#FFFFFF#000000##000000
##A6B8401.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE30
Deuteranopia (green-blind)
#C2B049
Tritanopia (blue-blind)
#B0AE9F
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #a6b840;
/* rgb */ color: rgb(166, 184, 64);
/* oklch */ color: oklch(74.6% 0.145 117.3);
Tailwind
colors: {
  custom: {
    50: '#c3cd7b',
    500: '#a6b840',
    950: '#000000',
  },
}
SCSS
$custom: #a6b840;
$custom-light: #c3cd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b840",
  "rgb": {
    "r": 166,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 69,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.74564,
    "c": 0.14453,
    "h": 117.3
  },
  "luminance": 0.42758
}

Semantic roles & 50–950 ramp

primary
#A6B840
secondary
#968DC7
accent
#50D864
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A6B840

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

Preview Lab → · Contrast checker → · Palette generator →

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