#AFBA38#AFBA38

#AFBA38 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#AFBA38
RGBrgb(175, 186, 56)
HSLhsl(65, 54%, 47%)
HSVhsv(65, 70%, 73%)
CMYKcmyk(5.9%, 0%, 69.9%, 27.1%)
CIE-LABlab(72.57, -20.18, 61.17)
CIE-LCHlch(72.57, 64.42, 108.25°)
OKLaboklab(75.66% -0.0613 0.1365)
OKLCHoklch(75.66% 0.15 114.2)
XYZxyz(35.9529, 44.5180, 10.4395)
Luminance0.4452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA38 #4338BA
analogous
#BA8438 #AFBA38 #6EBA38
triadic
#AFBA38 #38AFBA #BA38AF
tetradic
#AFBA38 #38BA84 #4338BA #BA386E
square
#AFBA38 #38BA84 #4338BA #BA386E
split-complementary
#AFBA38 #386EBA #8438BA
monochromatic
#565C1C #838B2A #AFBA38 #C6CF60 #D7DD8F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA38#FFFFFF#000000##000000
##AFBA381.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)
#C7B122
Deuteranopia (green-blind)
#C7B342
Tritanopia (blue-blind)
#BAAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba38;
/* rgb */ color: rgb(175, 186, 56);
/* oklch */ color: oklch(75.7% 0.150 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace77',
    500: '#afba38',
    950: '#000000',
  },
}
SCSS
$custom: #afba38;
$custom-light: #cace77;
$custom-dark: #000000;
JSON
{
  "hex": "#afba38",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 65.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75664,
    "c": 0.1496,
    "h": 114.2
  },
  "luminance": 0.44517
}

Semantic roles & 50–950 ramp

primary
#AFBA38
secondary
#8B86C8
accent
#4BDD57
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA38

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

Preview Lab → · Contrast checker → · Palette generator →

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