#AFB026#AFB026

#AFB026 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.149 H 110.0°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFB026
RGBrgb(175, 176, 38)
HSLhsl(60, 64%, 42%)
HSVhsv(60, 78%, 69%)
CMYKcmyk(0.6%, 0%, 78.4%, 31%)
CIE-LABlab(69.69, -15.96, 64.51)
CIE-LCHlch(69.69, 66.46, 103.89°)
OKLaboklab(73.32% -0.0511 0.1403)
OKLCHoklch(73.32% 0.149 110)
XYZxyz(33.5556, 40.3056, 7.8455)
Luminance0.4031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB026 #2726B0
analogous
#B06C26 #AFB026 #6AB026
triadic
#AFB026 #26AFB0 #B026AF
tetradic
#AFB026 #26B06C #2726B0 #B0266A
square
#AFB026 #26B06C #2726B0 #B0266A
split-complementary
#AFB026 #266AB0 #6C26B0
monochromatic
#4B4B10 #7D7E1B #AFB026 #D4D53E #DFE070

Accessibility & contrast

On white

2.32
#AFB026 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AFB026 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB026
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB026#FFFFFF#000000##000000
##AFB0261.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#C0AC32
Tritanopia (blue-blind)
#BCA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb026;
/* rgb */ color: rgb(175, 176, 38);
/* oklch */ color: oklch(73.3% 0.149 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc76d',
    500: '#afb026',
    950: '#000000',
  },
}
SCSS
$custom: #afb026;
$custom-light: #cbc76d;
$custom-dark: #000000;
JSON
{
  "hex": "#afb026",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 38
  },
  "hsl": {
    "h": 60.435,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.73321,
    "c": 0.14936,
    "h": 110
  },
  "luminance": 0.40305
}

Semantic roles & 50–950 ramp

primary
#AFB026
secondary
#6B6BC7
accent
#40E742
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #AFB026

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

Preview Lab → · Contrast checker → · Palette generator →

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