#AFBA37#AFBA37

#AFBA37 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.7% C 0.150 H 114.2°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#AFBA37
RGBrgb(175, 186, 55)
HSLhsl(65, 54%, 47%)
HSVhsv(65, 70%, 73%)
CMYKcmyk(5.9%, 0%, 70.4%, 27.1%)
CIE-LABlab(72.57, -20.23, 61.54)
CIE-LCHlch(72.57, 64.78, 108.20°)
OKLaboklab(75.66% -0.0615 0.1371)
OKLCHoklch(75.66% 0.15 114.2)
XYZxyz(35.9287, 44.5083, 10.3120)
Luminance0.4451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA37 #4237BA
analogous
#BA8337 #AFBA37 #6EBA37
triadic
#AFBA37 #37AFBA #BA37AF
tetradic
#AFBA37 #37BA83 #4237BA #BA376E
square
#AFBA37 #37BA83 #4237BA #BA376E
split-complementary
#AFBA37 #376EBA #8337BA
monochromatic
#565C1B #838B29 #AFBA37 #C6D05F #D7DE8E

Accessibility & contrast

On white

2.12
#AFBA37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.90
#AFBA37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA37
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA37#FFFFFF#000000##000000
##AFBA371.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B121
Deuteranopia (green-blind)
#C7B341
Tritanopia (blue-blind)
#BAAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba37;
/* rgb */ color: rgb(175, 186, 55);
/* oklch */ color: oklch(75.7% 0.150 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace76',
    500: '#afba37',
    950: '#000000',
  },
}
SCSS
$custom: #afba37;
$custom-light: #cace76;
$custom-dark: #000000;
JSON
{
  "hex": "#afba37",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 55
  },
  "hsl": {
    "h": 65.038,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.75656,
    "c": 0.15024,
    "h": 114.2
  },
  "luminance": 0.44508
}

Semantic roles & 50–950 ramp

primary
#AFBA37
secondary
#8A85C8
accent
#4ADE56
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA37

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

Preview Lab → · Contrast checker → · Palette generator →

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