#AFB23A#AFB23A

#AFB23A is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.140 H 110.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFB23A
RGBrgb(175, 178, 58)
HSLhsl(62, 51%, 46%)
HSVhsv(62, 67%, 70%)
CMYKcmyk(1.7%, 0%, 67.4%, 30.2%)
CIE-LABlab(70.36, -16.04, 58.19)
CIE-LCHlch(70.36, 60.36, 105.41°)
OKLaboklab(73.9% -0.0495 0.1305)
OKLCHoklch(73.9% 0.14 110.8)
XYZxyz(34.3644, 41.2611, 10.1561)
Luminance0.4126 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB23A #3D3AB2
analogous
#B2793A #AFB23A #73B23A
triadic
#AFB23A #3AAFB2 #B23AAF
tetradic
#AFB23A #3AB279 #3D3AB2 #B23A73
square
#AFB23A #3AB279 #3D3AB2 #B23A73
split-complementary
#AFB23A #3A73B2 #793AB2
monochromatic
#54561C #82842B #AFB23A #C8CB5F #D8DA8D

Accessibility & contrast

On white

2.27
#AFB23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFB23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB23A
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB23A#FFFFFF#000000##000000
##AFB23A1.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA28
Deuteranopia (green-blind)
#C1AE42
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb23a;
/* rgb */ color: rgb(175, 178, 58);
/* oklch */ color: oklch(73.9% 0.140 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac877',
    500: '#afb23a',
    950: '#000000',
  },
}
SCSS
$custom: #afb23a;
$custom-light: #cac877;
$custom-dark: #000000;
JSON
{
  "hex": "#afb23a",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 61.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.73895,
    "c": 0.13959,
    "h": 110.8
  },
  "luminance": 0.4126
}

Semantic roles & 50–950 ramp

primary
#AFB23A
secondary
#8583C4
accent
#4DDA51
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB23A

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

Preview Lab → · Contrast checker → · Palette generator →

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