#AFBA30#AFBA30

#AFBA30 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.6% C 0.154 H 114.1°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#AFBA30
RGBrgb(175, 186, 48)
HSLhsl(65, 59%, 46%)
HSVhsv(65, 74%, 73%)
CMYKcmyk(5.9%, 0%, 74.2%, 27.1%)
CIE-LABlab(72.53, -20.58, 63.96)
CIE-LCHlch(72.53, 67.18, 107.83°)
OKLaboklab(75.61% -0.0631 0.141)
OKLCHoklch(75.61% 0.154 114.1)
XYZxyz(35.7727, 44.4459, 9.4902)
Luminance0.4445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA30 #3B30BA
analogous
#BA8030 #AFBA30 #6ABA30
triadic
#AFBA30 #30AFBA #BA30AF
tetradic
#AFBA30 #30BA80 #3B30BA #BA306A
square
#AFBA30 #30BA80 #3B30BA #BA306A
split-complementary
#AFBA30 #306ABA #8030BA
monochromatic
#535917 #818923 #AFBA30 #C9D354 #D8DF85

Accessibility & contrast

On white

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

On black

9.89
#AFBA30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA30
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA30#FFFFFF#000000##000000
##AFBA301.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B111
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba30;
/* rgb */ color: rgb(175, 186, 48);
/* oklch */ color: oklch(75.6% 0.154 114.1);
Tailwind
colors: {
  custom: {
    50: '#cace73',
    500: '#afba30',
    950: '#000000',
  },
}
SCSS
$custom: #afba30;
$custom-light: #cace73;
$custom-dark: #000000;
JSON
{
  "hex": "#afba30",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 48
  },
  "hsl": {
    "h": 64.783,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.7561,
    "c": 0.15445,
    "h": 114.1
  },
  "luminance": 0.44445
}

Semantic roles & 50–950 ramp

primary
#AFBA30
secondary
#837DC9
accent
#46E252
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA30

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

Preview Lab → · Contrast checker → · Palette generator →

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