#AFB626#AFB626

#AFB626 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.155 H 112.5°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#AFB626
RGBrgb(175, 182, 38)
HSLhsl(63, 65%, 43%)
HSVhsv(63, 79%, 71%)
CMYKcmyk(3.8%, 0%, 79.1%, 28.6%)
CIE-LABlab(71.36, -18.99, 66.00)
CIE-LCHlch(71.36, 68.68, 106.05°)
OKLaboklab(74.66% -0.0595 0.1435)
OKLCHoklch(74.66% 0.155 112.5)
XYZxyz(34.7582, 42.7106, 8.2463)
Luminance0.4271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB626 #2D26B6
analogous
#B67526 #AFB626 #67B626
triadic
#AFB626 #26AFB6 #B626AF
tetradic
#AFB626 #26B675 #2D26B6 #B62667
square
#AFB626 #26B675 #2D26B6 #B62667
split-complementary
#AFB626 #2667B6 #7526B6
monochromatic
#4E5111 #7E831B #AFB626 #D0D742 #DDE274

Accessibility & contrast

On white

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

On black

9.54
#AFB626 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB626
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB626#FFFFFF#000000##000000
##AFB6261.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C5B034
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb626;
/* rgb */ color: rgb(175, 182, 38);
/* oklch */ color: oklch(74.7% 0.155 112.5);
Tailwind
colors: {
  custom: {
    50: '#cbcb6e',
    500: '#afb626',
    950: '#000000',
  },
}
SCSS
$custom: #afb626;
$custom-light: #cbcb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb626",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 38
  },
  "hsl": {
    "h": 62.917,
    "s": 65.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.74659,
    "c": 0.15539,
    "h": 112.5
  },
  "luminance": 0.4271
}

Semantic roles & 50–950 ramp

primary
#AFB626
secondary
#736EC9
accent
#3FE848
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB626

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

Preview Lab → · Contrast checker → · Palette generator →

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