#A6B526#A6B526

#A6B526 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.7% C 0.157 H 115.8°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#A6B526
RGBrgb(166, 181, 38)
HSLhsl(66, 65%, 43%)
HSVhsv(66, 79%, 71%)
CMYKcmyk(8.3%, 0%, 79%, 29%)
CIE-LABlab(70.38, -22.34, 64.87)
CIE-LCHlch(70.38, 68.61, 109.00°)
OKLaboklab(73.7% -0.0683 0.1415)
OKLCHoklch(73.7% 0.157 115.8)
XYZxyz(32.6005, 41.2952, 8.0868)
Luminance0.4129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B526 #3526B5
analogous
#B57D26 #A6B526 #5EB526
triadic
#A6B526 #26A6B5 #B526A6
tetradic
#A6B526 #26B57D #3526B5 #B5265E
square
#A6B526 #26B57D #3526B5 #B5265E
split-complementary
#A6B526 #265EB5 #7D26B5
monochromatic
#495011 #78821B #A6B526 #C7D741 #D6E274

Accessibility & contrast

On white

2.27
#A6B526 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#A6B526 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B526
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B526#FFFFFF#000000##000000
##A6B5261.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C1AD34
Tritanopia (blue-blind)
#B1AA9B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a6b526;
/* rgb */ color: rgb(166, 181, 38);
/* oklch */ color: oklch(73.7% 0.157 115.8);
Tailwind
colors: {
  custom: {
    50: '#c4cb6e',
    500: '#a6b526',
    950: '#000000',
  },
}
SCSS
$custom: #a6b526;
$custom-light: #c4cb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b526",
  "rgb": {
    "r": 166,
    "g": 181,
    "b": 38
  },
  "hsl": {
    "h": 66.294,
    "s": 65.297,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73704,
    "c": 0.15709,
    "h": 115.8
  },
  "luminance": 0.41295
}

Semantic roles & 50–950 ramp

primary
#A6B526
secondary
#776EC9
accent
#40E851
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B526

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

Preview Lab → · Contrast checker → · Palette generator →

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